Class: Playerchar
- Inherits:
-
Object
- Object
- 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.
78 79 80 81 |
# File 'lib/stattr.rb', line 78 def initialize(name) @name = name @stats = Statlist.new end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
76 77 78 |
# File 'lib/stattr.rb', line 76 def name @name end |
#stats ⇒ Object
Returns the value of attribute stats.
76 77 78 |
# File 'lib/stattr.rb', line 76 def stats @stats end |