Making save more of a true alias for save_png and save_png
This commit is contained in:
@@ -11,9 +11,9 @@ module Squib
|
|||||||
# @return self
|
# @return self
|
||||||
# @api public
|
# @api public
|
||||||
def save(opts = {})
|
def save(opts = {})
|
||||||
opts = needs(opts, [:range, :creatable_dir, :formats, :prefix, :rotate])
|
# opts = needs(opts, [:range, :creatable_dir, :formats, :prefix, :rotate])
|
||||||
save_png(opts) if opts[:format].include? :png
|
save_png(opts) if Array(opts[:format]).include? :png
|
||||||
save_pdf(opts) if opts[:format].include? :pdf
|
save_pdf(opts) if Array(opts[:format]).include? :pdf
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user