C
Christopher J. Bottaro
How do I do that? Consider the following class definitions:
class Foo
def a
puts "Foo"
end
end
class Bar < Foo
def a
puts "Bar"
end
def b
parent.a # I want to call Foo#a here for this instance of Bar.
end
end
Bar.new.b # => "Foo"
Thanks for the help.
class Foo
def a
puts "Foo"
end
end
class Bar < Foo
def a
puts "Bar"
end
def b
parent.a # I want to call Foo#a here for this instance of Bar.
end
end
Bar.new.b # => "Foo"
Thanks for the help.