hello anthony,

  first, i completely agree with hassan that a basic ruby tutorial is
absolutely the best place to start.  there are many very good ones
available - do a quick google search for "ruby tutorial."

  second, if i understand your question - try this:

#############
class NameGetter
  attr_reader :name
  def initialize
    puts "Hello, what's your name?"
    @name = gets.chomp
    puts "Hello, " + @name
  end
end  #class

class NameAndFeelingGetter
  def initialize
    namegetter = NameGetter.new
    name = namegetter.name
    puts "How do you feel?"
    feelings = gets.chomp
    puts "Well, #{name}, sounds like you're feeling #{feelings}"
  end
end  #class

nfg = NameAndFeelingGetter.new
###############

  then run the program...

  happy ruby-ing...

  -j

-- 
Posted via http://www.ruby-forum.com/.