Class: Usher::Splitter::SplitterInstance
- Inherits:
-
Object
- Object
- Usher::Splitter::SplitterInstance
- Defined in:
- lib/usher/splitter.rb
Instance Method Summary collapse
-
#initialize(url_split_regex) ⇒ SplitterInstance
constructor
A new instance of SplitterInstance.
- #url_split(path) ⇒ Object
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 |