Class: InvaderZim::Human

Inherits:
Object
  • Object
show all
Defined in:
lib/invader_zim/human.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/invader_zim/human.rb', line 2

def name
  @name
end