Class: Onigmo::LookAheadNode
- Defined in:
- lib/onigmo/node.rb,
lib/onigmo/visitor.rb,
ext/onigmo/onigmo.c
Overview
(?=subexp) ^^^^^^^^^^
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object
-
#initialize(node) ⇒ LookAheadNode
constructor
A new instance of LookAheadNode.
Methods inherited from Node
#as_json, #deconstruct_keys, #pretty_print, #to_json
Constructor Details
#initialize(node) ⇒ LookAheadNode
Returns a new instance of LookAheadNode.
199 200 201 |
# File 'lib/onigmo/node.rb', line 199 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
197 198 199 |
# File 'lib/onigmo/node.rb', line 197 def node @node end |
Instance Method Details
#accept(visitor) ⇒ Object
215 216 217 |
# File 'lib/onigmo/visitor.rb', line 215 def accept(visitor) visitor.visit_look_ahead_node(self) end |
#child_nodes ⇒ Object
219 220 221 |
# File 'lib/onigmo/visitor.rb', line 219 def child_nodes [node] end |