Module: Regex::Quantifiable

Defined in:
lib/regex/quantifiable.rb

Instance Method Summary collapse

Instance Method Details

#quantified?Boolean

Redefined method. Return true since it may not have any child.

Returns:

  • (Boolean)


8
9
10
# File 'lib/regex/quantifiable.rb', line 8

def quantified?
  return @quantifier.nil? ? false : true
end

#quantifierObject



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