Class: Onigmo::CallNode

Inherits:
Node
  • Object
show all
Defined in:
lib/onigmo/node.rb,
lib/onigmo/visitor.rb,
ext/onigmo/onigmo.c

Overview

g<name> ^^^^^^^^

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#as_json, #deconstruct_keys, #pretty_print, #to_json

Constructor Details

#initialize(number, name) ⇒ CallNode

Returns a new instance of CallNode.



105
106
107
108
# File 'lib/onigmo/node.rb', line 105

def initialize(number, name)
  @number = number
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



103
104
105
# File 'lib/onigmo/node.rb', line 103

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



103
104
105
# File 'lib/onigmo/node.rb', line 103

def number
  @number
end

Instance Method Details

#accept(visitor) ⇒ Object



125
126
127
# File 'lib/onigmo/visitor.rb', line 125

def accept(visitor)
  visitor.visit_call_node(self)
end

#child_nodesObject



129
130
131
# File 'lib/onigmo/visitor.rb', line 129

def child_nodes
  []
end