But I have no idea what this error means, heir is mys code:
if __FILE__ == $0 # TODO Generated stub dog = Dog.new dog.name = "Fido" dog.age = 11 dog.gender = "Male" dog.color = "Black" dog.bark; end
My Dog class
class Dog < Pet
def bark
puts "w00f"
end
end
My Pet class
class Pet attr_accessor :name, :age, :gender, :color end

New Topic/Question
Reply



MultiQuote



|