Class: Onigmo::EncloseOptionsNode
- Defined in:
- lib/onigmo/node.rb,
lib/onigmo/visitor.rb,
ext/onigmo/onigmo.c
Overview
(?options:subexp) ^^^^^^^^^^^^^^^^^
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object
-
#initialize(options, node) ⇒ EncloseOptionsNode
constructor
A new instance of EncloseOptionsNode.
Methods inherited from Node
#as_json, #deconstruct_keys, #pretty_print, #to_json
Constructor Details
#initialize(options, node) ⇒ EncloseOptionsNode
Returns a new instance of EncloseOptionsNode.
168 169 170 171 |
# File 'lib/onigmo/node.rb', line 168 def initialize(, node) = @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
166 167 168 |
# File 'lib/onigmo/node.rb', line 166 def node @node end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
166 167 168 |
# File 'lib/onigmo/node.rb', line 166 def end |
Instance Method Details
#accept(visitor) ⇒ Object
185 186 187 |
# File 'lib/onigmo/visitor.rb', line 185 def accept(visitor) visitor.(self) end |
#child_nodes ⇒ Object
189 190 191 |
# File 'lib/onigmo/visitor.rb', line 189 def child_nodes [node] end |