Method: Usher::Splitter::SingleCharacterSplitterInstance#initialize

Defined in:
lib/usher/splitter.rb

#initialize(delimiters) ⇒ SingleCharacterSplitterInstance

Returns a new instance of SingleCharacterSplitterInstance.



13
14
15
# File 'lib/usher/splitter.rb', line 13

def initialize(delimiters)
  @url_split_regex = Regexp.new("[^#{delimiters.regexp_char_class}]+|[#{delimiters.regexp_char_class}]")
end