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