Module: Helper
Instance Method Summary collapse
Instance Method Details
#filename(path, url, width, version) ⇒ Object
4 5 6 |
# File 'lib/helper.rb', line 4 def filename(path, url, width, version) "#{path}/#{name(url)}_#{width}_#{version}.png" end |
#url(base, url) ⇒ Object
8 9 10 |
# File 'lib/helper.rb', line 8 def url(base, url) ("#{base}/#{clean(url)}") end |