Class: Dentaku::AST::CaseWhen
Instance Attribute Summary
Attributes inherited from Operation
#left, #right
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Operation
max_param_count, min_param_count, right_associative?
Methods inherited from Node
peek, precedence, #type
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
.arity ⇒ Object
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
|