Module: Retinator
- Defined in:
- lib/retinator.rb,
lib/retinator/version.rb
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.generate(path, res) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/retinator.rb', line 10 def generate(path, res) return false unless check_params path, res show_dimension_hint_if_needed path, res generate_images path, res return true end |
.remove_files_on_abort ⇒ Object
17 18 19 20 21 22 |
# File 'lib/retinator.rb', line 17 def remove_files_on_abort @saved_files.each do |file| FileUtils.rm file end @saved_files.clear end |