class Magick::OptionalMethodArguments

Collects non-specific optional method arguments

Public Class Methods

new(img) click to toggle source
# File lib/RMagick.rb, line 1909
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 1919
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 1924
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 1930
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 1914
def method_missing(mth, val)
   @img.define(mth.to_s.tr('_', '-'), val)
end