Class: Locomotive::RelationalAlgebra::LessThan

Inherits:
Comparison show all
Defined in:
lib/locomotive/relational_algebra/operators/comparisons/less.rb

Instance Attribute Summary

Attributes inherited from Comparison

#item1, #item2, #res

Attributes inherited from Operator

#schema

Attributes included from AstHelpers::AstNode

#kind, #left_child, #owner, #right_child, #value

Instance Method Summary collapse

Methods inherited from Comparison

#child=, #clone, #set, #xml_content

Methods inherited from Operator

#bound, #free, #to_xml, #xml_content, #xml_schema

Methods included from XML

included, #quote, #to_xml

Methods included from AstHelpers::Annotations

#method_missing, #respond_to?

Methods included from AstHelpers::AstNode

#has_left_child?, #has_right_child?, #is_leaf?, #traverse, #traverse_strategy=

Constructor Details

#initialize(op, res, items) ⇒ LessThan

Returns a new instance of LessThan.



7
8
9
10
11
12
# File 'lib/locomotive/relational_algebra/operators/comparisons/less.rb', line 7

def initialize(op, res, items)
  super(op, res, items)
  change = self.item2
  self.item2 = self.item1
  self.item1 = change
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Locomotive::AstHelpers::Annotations

Instance Method Details

#xml_kindObject



14
15
16
# File 'lib/locomotive/relational_algebra/operators/comparisons/less.rb', line 14

def xml_kind
  :gt
end