class Foo attr_accessor :bar def foo bar = 50 # this does NOT change the bar property, shoudl be self.bar end end