Module: Regex::Quantifiable
- Defined in:
- lib/regex/quantifiable.rb
Instance Method Summary collapse
-
#quantified? ⇒ Boolean
Redefined method.
- #quantifier ⇒ Object
- #quantifier=(aQuantifier) ⇒ Object
Instance Method Details
#quantified? ⇒ Boolean
Redefined method. Return true since it may not have any child.
10 11 12 |
# File 'lib/regex/quantifiable.rb', line 10 def quantified? return !@quantifier.nil? end |
#quantifier ⇒ Object
14 15 16 |
# File 'lib/regex/quantifiable.rb', line 14 def quantifier @quantifier end |
#quantifier=(aQuantifier) ⇒ Object
18 19 20 |
# File 'lib/regex/quantifiable.rb', line 18 def quantifier=(aQuantifier) @quantifier = aQuantifier end |