Class: Dentaku::AST::CaseWhen
- Defined in:
- lib/dentaku/ast/case/case_when.rb
Instance Attribute Summary
Attributes inherited from Operation
Class Method Summary collapse
Instance Method Summary collapse
- #dependencies(context = {}) ⇒ Object
-
#initialize(node) ⇒ CaseWhen
constructor
A new instance of CaseWhen.
- #value(context = {}) ⇒ Object
Methods inherited from Operation
Methods inherited from Node
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 |