Class: Playerchar

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Playerchar

Returns a new instance of Playerchar.



78
79
80
81
# File 'lib/stattr.rb', line 78

def initialize(name) 
    @name = name
    @stats = Statlist.new
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



76
77
78
# File 'lib/stattr.rb', line 76

def name
  @name
end

#statsObject

Returns the value of attribute stats.



76
77
78
# File 'lib/stattr.rb', line 76

def stats
  @stats
end