Class: Katello::Util::UrlMatcher::Path
- Inherits:
-
Object
- Object
- Katello::Util::UrlMatcher::Path
- Defined in:
- app/lib/katello/util/url_matcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ext ⇒ Object
Returns the value of attribute ext.
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(path) ⇒ Path
constructor
A new instance of Path.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ Path
Returns a new instance of Path.
39 40 41 |
# File 'app/lib/katello/util/url_matcher.rb', line 39 def initialize(path) self.parts, self.ext = split_path(path) end |
Instance Attribute Details
#ext ⇒ Object
Returns the value of attribute ext.
37 38 39 |
# File 'app/lib/katello/util/url_matcher.rb', line 37 def ext @ext end |
#parts ⇒ Object
Returns the value of attribute parts.
37 38 39 |
# File 'app/lib/katello/util/url_matcher.rb', line 37 def parts @parts end |
Instance Method Details
#to_s ⇒ Object
43 44 45 |
# File 'app/lib/katello/util/url_matcher.rb', line 43 def to_s '/' + self.parts.join('/') + self.ext end |