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.
8 9 10 |
# File 'lib/regex/quantifiable.rb', line 8 def quantified? return @quantifier.nil? ? false : true end |
#quantifier ⇒ Object
12 13 14 |
# File 'lib/regex/quantifiable.rb', line 12 def quantifier @quantifier end |
#quantifier=(aQuantifier) ⇒ Object
16 17 18 |
# File 'lib/regex/quantifiable.rb', line 16 def quantifier=(aQuantifier) @quantifier = aQuantifier end |