def initialize( name )
self.name = name
def name=( some_name )
self.name = "Funktified"
r = Rooster.new( 'Freebird' ) # name is now 'Freebird'
r.name = 'Tweety'
def attribute=( someval )
That's retarded. Use attr_accessor, which creates a getter AND setter.
Yea, I was fog-brained last night when I posted. My point was actually that you can override the built-in setter provided by Ruby using the = sign. I changed the post to reflect...