Class: Dentaku::AST::Or
- Inherits:
-
Combinator
- Object
- Node
- Operation
- Combinator
- Dentaku::AST::Or
- Defined in:
- lib/dentaku/ast/combinators.rb
Instance Attribute Summary
Attributes inherited from Operation
Instance Method Summary collapse
Methods inherited from Combinator
Methods inherited from Operation
#accept, #dependencies, #display_operator, #initialize, max_param_count, min_param_count, right_associative?
Methods inherited from Node
arity, #dependencies, #name, precedence, resolve_class, #type
Constructor Details
This class inherits a constructor from Dentaku::AST::Combinator
Instance Method Details
#operator ⇒ Object
41 42 43 |
# File 'lib/dentaku/ast/combinators.rb', line 41 def operator :or end |
#value(context = {}) ⇒ Object
45 46 47 |
# File 'lib/dentaku/ast/combinators.rb', line 45 def value(context = {}) left.value(context) || right.value(context) end |