Class: Usher::Splitter
- Inherits:
-
Object
- Object
- Usher::Splitter
- Defined in:
- lib/usher/splitter.rb
Defined Under Namespace
Classes: SplitterInstance
Class Method Summary collapse
Class Method Details
.for_delimiters(router, valid_regex) ⇒ Object
6 7 8 |
# File 'lib/usher/splitter.rb', line 6 def self.for_delimiters(router, valid_regex) SplitterInstance.new(Regexp.new("[#{router.delimiters.collect{|d| Regexp.quote(d)}.join}]|[^#{router.delimiters.collect{|d| Regexp.quote(d)}.join}]+")) end |