Class: Rrrex::Regexp
- Inherits:
-
Regexp
- Object
- Regexp
- Rrrex::Regexp
- Defined in:
- lib/rrrex/regexp.rb
Instance Method Summary collapse
-
#initialize(r) ⇒ Regexp
constructor
A new instance of Regexp.
- #match(str) ⇒ Object
Constructor Details
#initialize(r) ⇒ Regexp
Returns a new instance of Regexp.
4 5 6 7 |
# File 'lib/rrrex/regexp.rb', line 4 def initialize( r ) super r.to_regexp_string @atom = r end |