Class: SampleFile::Image
Instance Method Summary collapse
Instance Method Details
#file(type = 'png') ⇒ Object
8 9 10 |
# File 'lib/sample_file/image.rb', line 8 def file(type='png') super end |
#file_path(type = 'png') ⇒ Object
3 4 5 6 |
# File 'lib/sample_file/image.rb', line 3 def file_path(type='png') filename = filename_for_type(type) File.join(image_dir_path, filename) end |