Class: Keisan::AST::LogicalLessThan
Instance Attribute Summary
Attributes inherited from Parent
#children
Class Method Summary
collapse
Instance Method Summary
collapse
#associativity
Methods inherited from Operator
#associativity, #blank_value, #initialize, #symbol
Methods inherited from Parent
#initialize
Class Method Details
.priority ⇒ Object
4
5
6
|
# File 'lib/keisan/ast/logical_less_than.rb', line 4
def self.priority
72
end
|
Instance Method Details
#arity ⇒ Object
8
9
10
|
# File 'lib/keisan/ast/logical_less_than.rb', line 8
def arity
2..2
end
|
#value(context = nil) ⇒ Object
12
13
14
|
# File 'lib/keisan/ast/logical_less_than.rb', line 12
def value(context = nil)
children.first.value(context) < children.last.value(context)
end
|