Hi. I'm sure it's been asked before, but I can't find the specific
answer. Basically I am doing the following..........


1.Created a ruby file Person.rb

class Person

def initialize(name,age)
@name = name
@age = age
end

def name
return @name
end

def age
return @age
end

end

2. I then run it

ruby Person.rb

3. Then when I try to instansiate a person object........

(in irb mode)  p1 = Person.new("John",30)

I get the following error......

NameError: uninitialized constant Object::Person

I don't understand what I'm missing.

Thanks

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