Class: Blouson::TolerantRegexp
- Inherits:
-
Regexp
- Object
- Regexp
- Blouson::TolerantRegexp
- Defined in:
- lib/blouson/tolerant_regexp.rb
Instance Method Summary collapse
Instance Method Details
#=~(str) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/blouson/tolerant_regexp.rb', line 3 def =~(str) if str.respond_to?(:valid_encoding?) && !str.valid_encoding? nil else super end end |