class Zombie
attr_accessor :name
def initialize
@name = 'Ash'
end
end
in irb:
load 'zombie.rb'
a = Zombie.new
a.name
NoMethoderror: undefined method 'name' for #<Zombie...>
Y2xhc3MgWm9tYmllCglhdHRyX2FjY2Vzc29yIDpuYW1lCglkZWYgaW5pdGlhbGl6ZQoJCUBuYW1lID0gJ0FzaCcKCWVuZAplbmQKCmluIGlyYjoKbG9hZCAnem9tYmllLnJiJwphID0gWm9tYmllLm5ldwphLm5hbWUKTm9NZXRob2RlcnJvcjogdW5kZWZpbmVkIG1ldGhvZCAnbmFtZScgZm9yICM8Wm9tYmllLi4uPg==