Created
November 21, 2016 15:11
-
-
Save jordanpoulton/fc34a7906c11f41ce086b167e34a622a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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