Making save more of a true alias for save_png and save_png

dev
Andy Meneely 2015-02-07 17:22:55 -05:00
parent 5235b15fe4
commit 0afe6868c9
1 changed files with 3 additions and 3 deletions

View File

@ -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