Class: Regexp
Instance Method Summary collapse
-
#to_proc ⇒ Object
Matches the regexp against the parameter object.
Instance Method Details
#to_proc ⇒ Object
Matches the regexp against the parameter object.
6 7 8 |
# File 'lib/mug/rexproc.rb', line 6 def to_proc lambda {|s| self =~ s } end |