Javkhlan, attr_accessor :highlight
is short form for
def highlight
@hightlight
end
def highlight=(highlight)
@highlight = highlight
end
So, your code
def highlight
end
def highlight=(arg)
puts "NO ACCESS"
end
Just rewrite methods generated by your attr_accessor
. Try to remove these two methods and you'll be happy