Class: Onigmo::EncloseAbsentNode
- 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) ⇒ EncloseAbsentNode
constructor
A new instance of EncloseAbsentNode.
Methods inherited from Node
#as_json, #deconstruct_keys, #pretty_print, #to_json
Constructor Details
#initialize(node) ⇒ EncloseAbsentNode
Returns a new instance of EncloseAbsentNode.
136 137 138 |
# File 'lib/onigmo/node.rb', line 136 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
134 135 136 |
# File 'lib/onigmo/node.rb', line 134 def node @node end |
Instance Method Details
#accept(visitor) ⇒ Object
155 156 157 |
# File 'lib/onigmo/visitor.rb', line 155 def accept(visitor) visitor.visit_enclose_absent_node(self) end |
#child_nodes ⇒ Object
159 160 161 |
# File 'lib/onigmo/visitor.rb', line 159 def child_nodes [node] end |