Call super on private method
- by opsb
class A
private
def greet
puts "hello!"
end
end
class B < A
def greet
super
end
end
B.new.greet # => Attempt to call private method
because super isn't a method you can't use the usual send(:super). So how's it done?