Your confusion is what super
is in Ruby: it's not a reference, it's a keyword.
All you need to do is call super
, e.g.:
def replace(fb, offset, length, text, attrs)
puts 'doing replace'
super
end
super
with no args calls the superclass method with the current method's args. You can call with args, e.g., super foo, bar
, or with no args (explicitly requires parens) e.g., super()
.