class Magick::OptionalMethodArguments
Collects non-specific optional method arguments
Public Class Methods
new(img)
click to toggle source
# File lib/RMagick.rb, line 1884 def initialize(img) @img = img end
Public Instance Methods
define(key, val = nil)
click to toggle source
set(key, val) corresponds to -set option:key val
# File lib/RMagick.rb, line 1894 def define(key, val = nil) @img.define(key, val) end
highlight_color=(color)
click to toggle source
accepts Pixel
object or color name
# File lib/RMagick.rb, line 1899 def highlight_color=(color) color = @img.to_color(color) if color.respond_to?(:to_color) @img.define("highlight-color", color) end
lowlight_color=(color)
click to toggle source
accepts Pixel
object or color name
# File lib/RMagick.rb, line 1905 def lowlight_color=(color) color = @img.to_color(color) if color.respond_to?(:to_color) @img.define("lowlight-color", color) end
method_missing(mth, val)
click to toggle source
miscellaneous options like -verbose
# File lib/RMagick.rb, line 1889 def method_missing(mth, val) @img.define(mth.to_s.tr('_', '-'), val) end