Module: URI
- Defined in:
- lib/sitemap_maker.rb,
lib/SitemapMaker/core_ext/uri/directory.rb
Instance Method Summary collapse
Instance Method Details
#directory_path ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/sitemap_maker.rb', line 21 def directory_path if self.to_s.match(/\/$/) self else self.to_s.sub(/(.*\/).*?$/, '\1') end end |