Class: Dentaku::AST::LessThan

Inherits:
Comparator show all
Defined in:
lib/dentaku/ast/comparators.rb

Instance Attribute Summary

Attributes inherited from Operation

#left, #right

Instance Method Summary collapse

Methods inherited from Comparator

precedence, #type

Methods inherited from Operation

#dependencies, #initialize, max_param_count, min_param_count, right_associative?

Methods inherited from Node

arity, #dependencies, peek, precedence, #type

Constructor Details

This class inherits a constructor from Dentaku::AST::Operation

Instance Method Details

#operatorObject



34
35
36
# File 'lib/dentaku/ast/comparators.rb', line 34

def operator
  return :<
end

#value(context = {}) ⇒ Object



30
31
32
# File 'lib/dentaku/ast/comparators.rb', line 30

def value(context = {})
  super() { left.value(context) < right.value(context) }
end