Class: Fleakr::Support::UrlExpander
- Inherits:
-
Object
- Object
- Fleakr::Support::UrlExpander
- Defined in:
- lib/fleakr/support/url_expander.rb
Class Method Summary collapse
Instance Method Summary collapse
- #expanded_path ⇒ Object
-
#initialize(source_url) ⇒ UrlExpander
constructor
A new instance of UrlExpander.
- #path_to_expand ⇒ Object
Constructor Details
#initialize(source_url) ⇒ UrlExpander
Returns a new instance of UrlExpander.
10 11 12 |
# File 'lib/fleakr/support/url_expander.rb', line 10 def initialize(source_url) @source_url = source_url end |
Class Method Details
.expand(url) ⇒ Object
6 7 8 |
# File 'lib/fleakr/support/url_expander.rb', line 6 def self.(url) new(url). end |