Class: Onigmo::StringNode

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

Overview

abc ^^^

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#as_json, #deconstruct_keys, #pretty_print, #to_json

Constructor Details

#initialize(value) ⇒ StringNode

Returns a new instance of StringNode.



252
253
254
# File 'lib/onigmo/node.rb', line 252

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



250
251
252
# File 'lib/onigmo/node.rb', line 250

def value
  @value
end

Instance Method Details

#accept(visitor) ⇒ Object



265
266
267
# File 'lib/onigmo/visitor.rb', line 265

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

#child_nodesObject



269
270
271
# File 'lib/onigmo/visitor.rb', line 269

def child_nodes
  []
end