module GraphicsMagick::Utilities
Constants
- DEFAULT_UTILITY
Public Instance Methods
current_utility()
click to toggle source
# File lib/graphicsmagick/utilities.rb, line 15 def current_utility @utility || DEFAULT_UTILITY end
to_cmd()
click to toggle source
# File lib/graphicsmagick/utilities.rb, line 19 def to_cmd "gm " + build_command('output_file') end
Private Instance Methods
build_command(file)
click to toggle source
# File lib/graphicsmagick/utilities.rb, line 29 def build_command(file) send(:"build_#{current_utility}_command", file) end
options_to_str(opts)
click to toggle source
# File lib/graphicsmagick/utilities.rb, line 33 def options_to_str(opts) if opts.nil? "" else opts.collect {|opt| "#{opt[:name]} #{opt[:args]}"}.join(" ") end end
requires_output_file?()
click to toggle source
# File lib/graphicsmagick/utilities.rb, line 25 def requires_output_file? send(:"#{current_utility}_requires_output_file?") end