Class: Rrrex::StringMatch
- Includes:
- SingleAtomMatch
- Defined in:
- lib/rrrex/string_match.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from SingleAtomMatch
Instance Method Summary collapse
-
#initialize(a) ⇒ StringMatch
constructor
A new instance of StringMatch.
- #to_regexp_string ⇒ Object
Methods included from SingleAtomMatch
Methods inherited from Match
#+, convert, #group_names, #match, #not, #or, #wrap
Constructor Details
#initialize(a) ⇒ StringMatch
Returns a new instance of StringMatch.
6 7 8 |
# File 'lib/rrrex/string_match.rb', line 6 def initialize( a ) @atom = a end |
Instance Method Details
#to_regexp_string ⇒ Object
10 11 12 |
# File 'lib/rrrex/string_match.rb', line 10 def to_regexp_string wrap Regexp.escape atom end |