Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Last active December 16, 2015 09:48
Show Gist options
  • Select an option

  • Save ajsharp/5415014 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/5415014 to your computer and use it in GitHub Desktop.
class Person
attr_reader :name
def initialize(name)
@name = name
end
end
Human = Person
alex = Human.new 'alex'
alex.name # => "alex"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment