Skip to content

Instantly share code, notes, and snippets.

@jordanpoulton
Created November 21, 2016 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanpoulton/fc34a7906c11f41ce086b167e34a622a to your computer and use it in GitHub Desktop.
Save jordanpoulton/fc34a7906c11f41ce086b167e34a622a to your computer and use it in GitHub Desktop.
class Person
def initialize(name, age)
@name = name
@age = age
end
end
jordan = Person.new(‘Jordan’, 31)
puts jordan.inspect
# => #<Person:0x007fb76a08f2b8 @name=”Jordan”, @age=30>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment