Class: Onigmo::StringNode
- Defined in:
- lib/onigmo/node.rb,
lib/onigmo/visitor.rb,
ext/onigmo/onigmo.c
Overview
abc ^^^
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object
-
#initialize(value) ⇒ StringNode
constructor
A new instance of StringNode.
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
#value ⇒ Object (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_nodes ⇒ Object
269 270 271 |
# File 'lib/onigmo/visitor.rb', line 269 def child_nodes [] end |