Class: Regexp

Inherits:
Object show all
Defined in:
lib/mug/rexproc.rb

Instance Method Summary collapse

Instance Method Details

#to_procObject

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