Browse Source

Making save more of a true alias for save_png and save_png

dev
Andy Meneely 11 years ago
parent
commit
0afe6868c9
  1. 6
      lib/squib/api/save.rb

6
lib/squib/api/save.rb

@ -11,9 +11,9 @@ module Squib
# @return self
# @api public
def save(opts = {})
opts = needs(opts, [:range, :creatable_dir, :formats, :prefix, :rotate])
save_png(opts) if opts[:format].include? :png
save_pdf(opts) if opts[:format].include? :pdf
# opts = needs(opts, [:range, :creatable_dir, :formats, :prefix, :rotate])
save_png(opts) if Array(opts[:format]).include? :png
save_pdf(opts) if Array(opts[:format]).include? :pdf
self
end

Loading…
Cancel
Save