Class: Dentaku::AST::GreaterThanOrEqual
- Inherits:
-
Comparator
- Object
- Node
- Operation
- Comparator
- Dentaku::AST::GreaterThanOrEqual
- Defined in:
- lib/dentaku/ast/comparators.rb
Instance Attribute Summary
Attributes inherited from Operation
Instance Method Summary collapse
Methods inherited from Comparator
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
#operator ⇒ Object
64 65 66 |
# File 'lib/dentaku/ast/comparators.rb', line 64 def operator return :>= end |
#value(context = {}) ⇒ Object
60 61 62 |
# File 'lib/dentaku/ast/comparators.rb', line 60 def value(context = {}) super() { left.value(context) >= right.value(context) } end |