Class: InvaderZim::Human
- Inherits:
-
Object
- Object
- InvaderZim::Human
- Defined in:
- lib/invader_zim/human.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Human
constructor
A new instance of Human.
Constructor Details
#initialize(name) ⇒ Human
Returns a new instance of Human.
4 5 6 |
# File 'lib/invader_zim/human.rb', line 4 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/invader_zim/human.rb', line 2 def name @name end |