Define getter for a attribute
#!/usr/bin/env ruby class Horse def initialize( name ) @name = name end def horse_name @name end end horse = Horse.new( "Doc Bar" ) puts horse.horse_name # => Doc Bar