Class: Stattr::Playerchar
- Inherits:
-
Object
- Object
- Stattr::Playerchar
- Defined in:
- lib/stattr.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(name) ⇒ Playerchar
constructor
A new instance of Playerchar.
Constructor Details
#initialize(name) ⇒ Playerchar
Returns a new instance of Playerchar.
85 86 87 88 |
# File 'lib/stattr.rb', line 85 def initialize(name) @name = name @stats = Statlist.new end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
83 84 85 |
# File 'lib/stattr.rb', line 83 def name @name end |
#stats ⇒ Object
Returns the value of attribute stats.
83 84 85 |
# File 'lib/stattr.rb', line 83 def stats @stats end |