class Regexp

Public Instance Methods

to_proc() click to toggle source

Matches the regexp against the parameter object.

# File lib/mug/rexproc.rb, line 6
def to_proc
  lambda {|s| self =~ s }
end