Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created July 13, 2012 19:50
Show Gist options
  • Save jameshibbard/3106998 to your computer and use it in GitHub Desktop.
Save jameshibbard/3106998 to your computer and use it in GitHub Desktop.
Simple ruby class
class Person
attr_accessor :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
bob= Person.new("Robert DeNiro", 68)
p bob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment