Class: Locomotive::RelationalAlgebra::SideEffects
- Inherits:
-
Object
- Object
- Locomotive::RelationalAlgebra::SideEffects
- Defined in:
- lib/locomotive/relational_algebra/query_information.rb
Instance Attribute Summary collapse
-
#side ⇒ Object
readonly
Returns the value of attribute side.
Instance Method Summary collapse
- #add(side_effect) ⇒ Object (also: #+)
-
#initialize(side) ⇒ SideEffects
constructor
A new instance of SideEffects.
- #plan ⇒ Object
Constructor Details
#initialize(side) ⇒ SideEffects
Returns a new instance of SideEffects.
407 408 409 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 407 def initialize(side) @side = to_side_effect side end |
Instance Attribute Details
#side ⇒ Object (readonly)
Returns the value of attribute side.
405 406 407 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 405 def side @side end |
Instance Method Details
#add(side_effect) ⇒ Object Also known as: +
411 412 413 414 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 411 def add(side_effect) SideEffects.new( @side + to_side_effect(side_effect)) end |