Class: Dentaku::AST::BitwiseOr

Inherits:
Operation show all
Defined in:
lib/dentaku/ast/bitwise.rb

Instance Attribute Summary

Attributes inherited from Operation

#left, #right

Instance Method Summary collapse

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

#value(context = {}) ⇒ Object



6
7
8
# File 'lib/dentaku/ast/bitwise.rb', line 6

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