Module: Rindle::Mixins::Regexp

Defined in:
lib/rindle/mixins/regexp.rb

Instance Method Summary collapse

Instance Method Details

#stripObject

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