Class: Imagecache::UrlReader
- Inherits:
-
Object
- Object
- Imagecache::UrlReader
- Defined in:
- lib/imagecache/url_reader.rb
Instance Method Summary collapse
Instance Method Details
#read(path) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/imagecache/url_reader.rb', line 6 def read(path) if path =~ /imagecache\/([^\/]*)\/(.*)/ assetpath = $2 conversions = parse_conversions($1) OpenStruct.new({ conversions: conversions, assetpath: assetpath }) end end |