Class: Locomotive::RelationalAlgebra::Leaf
- Inherits:
-
Operator
- Object
- RelAlgAstNode
- Operator
- Locomotive::RelationalAlgebra::Leaf
- Defined in:
- lib/locomotive/relational_algebra/operators/basic_operators.rb
Overview
A leaf doesn’t have any child
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Operator
Attributes included from AstHelpers::AstNode
#kind, #left_child, #owner, #right_child, #value
Instance Method Summary collapse
-
#initialize ⇒ Leaf
constructor
undef left_child= undef left_child undef has_left_child? undef right_child= undef right_child undef has_right_child?.
- #set(var, plan) ⇒ Object
Methods inherited from Operator
#bound, #free, #to_xml, #xml_content, #xml_kind, #xml_schema
Methods included from XML
Methods included from AstHelpers::Annotations
Methods included from AstHelpers::AstNode
#has_left_child?, #has_right_child?, #is_leaf?, #traverse, #traverse_strategy=
Constructor Details
#initialize ⇒ Leaf
undef left_child=
undef left_child
undef has_left_child?
undef right_child=
undef right_child
undef has_right_child?
76 77 78 79 80 |
# File 'lib/locomotive/relational_algebra/operators/basic_operators.rb', line 76 def initialize() raise AbstractClassError, "#{self.class} is an abstract class" if self.class == Leaf super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Locomotive::AstHelpers::Annotations
Instance Method Details
#set(var, plan) ⇒ Object
82 83 84 |
# File 'lib/locomotive/relational_algebra/operators/basic_operators.rb', line 82 def set(var,plan) self.clone end |