Module: Rindle::Mixins::Regexp
- Defined in:
- lib/rindle/mixins/regexp.rb
Instance Method Summary collapse
-
#strip ⇒ Object
converts the expressin to a string and strips the special characters for marking the beginning and end of a string.
Instance Method Details
#strip ⇒ Object
converts the expressin to a string and strips the special characters for marking the beginning and end of a string
8 9 10 |
# File 'lib/rindle/mixins/regexp.rb', line 8 def strip self.source.gsub(/^\^/,'').gsub(/\$$/,'') end |