Class: Usher::Splitter::SplitterInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/usher/splitter.rb

Instance Method Summary collapse

Constructor Details

#initialize(url_split_regex) ⇒ SplitterInstance

Returns a new instance of SplitterInstance.



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

def initialize(url_split_regex)
  @url_split_regex = url_split_regex
end

Instance Method Details

#url_split(path) ⇒ Object



16
17
18
# File 'lib/usher/splitter.rb', line 16

def url_split(path)
  path.scan(@url_split_regex)
end