Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Person
attr_reader :name, :age
def initialize(name, age)
@name = name
@age = age
end
def jump
puts "jumping!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment