Class: Keisanjaku::Step
- Inherits:
-
Struct
- Object
- Struct
- Keisanjaku::Step
- Defined in:
- lib/keisanjaku/planner.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#primitive ⇒ Object
Returns the value of attribute primitive.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#side ⇒ Object
Returns the value of attribute side.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
5 6 7 |
# File 'lib/keisanjaku/planner.rb', line 5 def description @description end |
#primitive ⇒ Object
Returns the value of attribute primitive
5 6 7 |
# File 'lib/keisanjaku/planner.rb', line 5 def primitive @primitive end |
#scale ⇒ Object
Returns the value of attribute scale
5 6 7 |
# File 'lib/keisanjaku/planner.rb', line 5 def scale @scale end |
#side ⇒ Object
Returns the value of attribute side
5 6 7 |
# File 'lib/keisanjaku/planner.rb', line 5 def side @side end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/keisanjaku/planner.rb', line 5 def value @value end |
Instance Method Details
#label ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/keisanjaku/planner.rb', line 6 def label parts = [primitive] parts << scale if scale parts << value if value parts << side if side parts.join(" ") end |