Class: Regexp
- Inherits:
-
Object
- Object
- Regexp
- Defined in:
- lib/rubyexcel.rb
Overview
Ruby’s standard Regexp class.
Regexp#to_proc is a bit of "syntactic sugar" which allows shorthand Regexp blocks
Instance Method Summary collapse
Instance Method Details
#to_proc ⇒ Object
14 15 16 |
# File 'lib/rubyexcel.rb', line 14 def to_proc proc { |s| self =~ s.to_s } end |