Class: Dentaku::AST::CaseWhen

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

Instance Attribute Summary

Attributes inherited from Operation

#left, #right

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Operation

right_associative?

Methods inherited from Node

precedence

Constructor Details

#initialize(node) ⇒ CaseWhen

Returns a new instance of CaseWhen.



8
9
10
# File 'lib/dentaku/ast/case/case_when.rb', line 8

def initialize(node)
  @node = node
end

Class Method Details

.arityObject



4
5
6
# File 'lib/dentaku/ast/case/case_when.rb', line 4

def self.arity
  1
end

Instance Method Details

#dependencies(context = {}) ⇒ Object



16
17
18
# File 'lib/dentaku/ast/case/case_when.rb', line 16

def dependencies(context={})
  @node.dependencies(context)
end

#value(context = {}) ⇒ Object



12
13
14
# File 'lib/dentaku/ast/case/case_when.rb', line 12

def value(context={})
  @node.value(context)
end