# Sample2 class class Sample2 def initialize @foo = 'baz' end def bar @foo end end