Class: RulerCoaster::Logic::Base

Inherits:
Object
  • Object
show all
Includes:
Mixin
Defined in:
lib/ruler_coaster/logic/base.rb

Direct Known Subclasses

And, Nor, Not, Or

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin

#and, #nor, #not, #or

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

#leftObject (readonly)

Returns the value of attribute left.



8
9
10
# File 'lib/ruler_coaster/logic/base.rb', line 8

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



8
9
10
# File 'lib/ruler_coaster/logic/base.rb', line 8

def right
  @right
end