class Regexp
Ruby’s standard Regexp
class.
Public Instance Methods
to_proc()
click to toggle source
A bit of “syntactic sugar” which allows shorthand Regexp
blocks
@example
sheet.filter!( 'Part', &/Type[13]/ )
# File lib/rubyexcel.rb, line 18 def to_proc proc { |string| self =~ string.to_s } end