Class: Onigmo::QuantifierNode
- Defined in:
- lib/onigmo/node.rb,
lib/onigmo/visitor.rb,
ext/onigmo/onigmo.c
Overview
a1,2
^^^^^
Instance Attribute Summary collapse
-
#greedy ⇒ Object
readonly
Returns the value of attribute greedy.
-
#lower ⇒ Object
readonly
Returns the value of attribute lower.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#upper ⇒ Object
readonly
Returns the value of attribute upper.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object
-
#initialize(lower, upper, greedy, node) ⇒ QuantifierNode
constructor
A new instance of QuantifierNode.
Methods inherited from Node
#as_json, #deconstruct_keys, #pretty_print, #to_json
Constructor Details
#initialize(lower, upper, greedy, node) ⇒ QuantifierNode
Returns a new instance of QuantifierNode.
239 240 241 242 243 244 |
# File 'lib/onigmo/node.rb', line 239 def initialize(lower, upper, greedy, node) @lower = lower @upper = upper @greedy = greedy @node = node end |
Instance Attribute Details
#greedy ⇒ Object (readonly)
Returns the value of attribute greedy.
237 238 239 |
# File 'lib/onigmo/node.rb', line 237 def greedy @greedy end |
#lower ⇒ Object (readonly)
Returns the value of attribute lower.
237 238 239 |
# File 'lib/onigmo/node.rb', line 237 def lower @lower end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
237 238 239 |
# File 'lib/onigmo/node.rb', line 237 def node @node end |
#upper ⇒ Object (readonly)
Returns the value of attribute upper.
237 238 239 |
# File 'lib/onigmo/node.rb', line 237 def upper @upper end |
Instance Method Details
#accept(visitor) ⇒ Object
255 256 257 |
# File 'lib/onigmo/visitor.rb', line 255 def accept(visitor) visitor.visit_quantifier_node(self) end |
#child_nodes ⇒ Object
259 260 261 |
# File 'lib/onigmo/visitor.rb', line 259 def child_nodes [node] end |