Class: RulerCoaster::Logic::Base
- Inherits:
-
Object
- Object
- RulerCoaster::Logic::Base
- Includes:
- Mixin
- Defined in:
- lib/ruler_coaster/logic/base.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ Base
constructor
A new instance of Base.
Methods included from Mixin
Constructor Details
#initialize(left, right) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/ruler_coaster/logic/base.rb', line 11 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
8 9 10 |
# File 'lib/ruler_coaster/logic/base.rb', line 8 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
8 9 10 |
# File 'lib/ruler_coaster/logic/base.rb', line 8 def right @right end |