Class: Dentaku::AST::Grouping

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

Instance Method Summary collapse

Methods inherited from Node

arity, peek, precedence

Constructor Details

#initialize(node) ⇒ Grouping

Returns a new instance of Grouping.



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

def initialize(node)
  @node = node
end

Instance Method Details

#dependencies(context = {}) ⇒ Object



18
19
20
# File 'lib/dentaku/ast/grouping.rb', line 18

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

#typeObject



14
15
16
# File 'lib/dentaku/ast/grouping.rb', line 14

def type
  @node.type
end

#value(context = {}) ⇒ Object



10
11
12
# File 'lib/dentaku/ast/grouping.rb', line 10

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