class Hello def initialize( name ) @name = name end def hello_matz puts "Hello, " + @name + "!" endendhi = Hello.new( "Matz" )hi.hello_matz # => Hello, Matz!