Class: Dentaku::AST::CaseThen

Inherits:
Node
  • Object
show all
Defined in:
lib/dentaku/ast/case/case_then.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

precedence

Constructor Details

#initialize(node) ⇒ CaseThen

Returns a new instance of CaseThen.



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

def initialize(node)
  @node = node
end

Class Method Details

.arityObject



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

def self.arity
  1
end

Instance Method Details

#dependencies(context = {}) ⇒ Object



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

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

#value(context = {}) ⇒ Object



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

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