Making save more of a true alias for save_png and save_png
parent
5235b15fe4
commit
0afe6868c9
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue