Module: Rrrex::SingleAtomMatch
- Included in:
- GroupMatch, NotMatch, NumberMatch, RangeMatch, StringMatch
- Defined in:
- lib/rrrex/single_atom_match.rb
Instance Attribute Summary collapse
-
#atom ⇒ Object
Returns the value of attribute atom.
Instance Method Summary collapse
Instance Attribute Details
#atom ⇒ Object
Returns the value of attribute atom.
4 5 6 |
# File 'lib/rrrex/single_atom_match.rb', line 4 def atom @atom end |
Instance Method Details
#group_names ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/rrrex/single_atom_match.rb', line 18 def group_names if @atom.respond_to? :group_names @atom.group_names if @atom.respond_to? :group_names else [] end end |
#initialize(a) ⇒ Object
6 7 8 |
# File 'lib/rrrex/single_atom_match.rb', line 6 def initialize( a ) self.atom = a end |
#to_regexp_string ⇒ Object
14 15 16 |
# File 'lib/rrrex/single_atom_match.rb', line 14 def to_regexp_string wrap atom.to_regexp_string end |