### Home Classes Methods

### In Files

- lib/RMagick.rb

### Parent

Object

### Methods

- ::new
- #define
- #highlight_color=
- #lowlight_color=
- #method_missing

### Files

- MANIFEST
- Makefile

### Class/Module Index

Quicksearch

- Magick
- Magick::DestroyedImageError
- Magick::Draw
- Magick::Enum
- Magick::FatalImageMagickError
- Magick::Geometry
- Magick::GeometryValue
- Magick::GradientFill
- Magick::HatchFill
- Magick::IPTC
- Magick::IPTC::Application
- Magick::IPTC::Envelope
- Magick::IPTC::ObjectData
- Magick::IPTC::Post_ObjectData_Descriptor
- Magick::IPTC::Pre_ObjectData_Descriptor
- Magick::Image
- Magick::Image::DrawOptions
- Magick::Image::Info
- Magick::Image::PolaroidOptions
- Magick::Image::View
- Magick::Image::View::Pixels
- Magick::Image::View::Rows
- Magick::ImageList
- Magick::ImageList::Montage
- Magick::ImageMagickError
- Magick::OptionalMethodArguments
- Magick::Pixel
- Magick::RVG
- Magick::RVG::Circle
- Magick::RVG::ClipPath
- Magick::RVG::Describable
- Magick::RVG::Duplicatable
- Magick::RVG::Ellipse
- Magick::RVG::Embellishable
- Magick::RVG::Group
- Magick::RVG::Image
- Magick::RVG::ImageConstructors
- Magick::RVG::Line
- Magick::RVG::Path
- Magick::RVG::PathData
- Magick::RVG::Pattern
- Magick::RVG::PolyShape
- Magick::RVG::Polygon
- Magick::RVG::Polyline
- Magick::RVG::PreserveAspectRatio
- Magick::RVG::Rect
- Magick::RVG::ShapeConstructors
- Magick::RVG::Stretchable
- Magick::RVG::StructureConstructors
- Magick::RVG::Stylable
- Magick::RVG::Text
- Magick::RVG::TextBase
- Magick::RVG::TextConstructors
- Magick::RVG::Transformable
- Magick::RVG::Use
- Magick::RVG::UseConstructors
- Magick::RVG::Utility
- Magick::RVG::Utility::DefaultTextStrategy
- Magick::RVG::Utility::GraphicContext
- Magick::RVG::Utility::LRTextStrategy
- Magick::RVG::Utility::RLTextStrategy
- Magick::RVG::Utility::TBTextStrategy
- Magick::RVG::Utility::TextAttributes
- Magick::RVG::Utility::TextStrategy
- Magick::TextureFill
- Object

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.