In the hidden sprite class is a method for manipulating tone. I need to alias the manipulation of this property if possible.
It never reaches that print. So I assume I'm screwing up somewhere or aliasing the wrong method. I would be eternally grateful to someone who might be able to offer a solution or guidance to this dilemma.
Thanks for taking the time to read this. :thumb:
Code:
class Sprite
attr_accessor :ignore_tone
alias_method :test_sprite_tone=, :tone=
def tone=(tone)
p 'here'
return if ignore_tone
self.test_sprite_tone=(tone)
end
end
It never reaches that print. So I assume I'm screwing up somewhere or aliasing the wrong method. I would be eternally grateful to someone who might be able to offer a solution or guidance to this dilemma.
Thanks for taking the time to read this. :thumb: