Class: T90X::Move
- Inherits:
-
Object
- Object
- T90X::Move
- Defined in:
- lib/t90x/move.rb
Instance Attribute Summary collapse
-
#break ⇒ Object
readonly
Returns the value of attribute break.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
- #break? ⇒ Boolean
-
#initialize(name, options = {}) ⇒ Move
constructor
A new instance of Move.
- #weight? ⇒ Boolean
Constructor Details
#initialize(name, options = {}) ⇒ Move
Returns a new instance of Move.
7 8 9 10 11 |
# File 'lib/t90x/move.rb', line 7 def initialize(name, = {}) @name = name @weight = [:weight] || false @break = [:break] || false end |
Instance Attribute Details
#break ⇒ Object (readonly)
Returns the value of attribute break.
3 4 5 |
# File 'lib/t90x/move.rb', line 3 def break @break end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/t90x/move.rb', line 4 def name @name end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
5 6 7 |
# File 'lib/t90x/move.rb', line 5 def weight @weight end |
Instance Method Details
#break? ⇒ Boolean
17 18 19 |
# File 'lib/t90x/move.rb', line 17 def break? @break end |
#weight? ⇒ Boolean
13 14 15 |
# File 'lib/t90x/move.rb', line 13 def weight? @weight end |