Methods

Class/Module Index [+]

Quicksearch

Rabbit::ImageManipulable

Public Class Methods

new(filename, props=nil, *args, &block) click to toggle source
# File lib/rabbit/image.rb, line 22
def initialize(filename, props=nil, *args, &block)
  unless File.exist?(filename)
    raise ImageFileDoesNotExistError.new(filename)
  end
  super(*args, &block)
  props = Utils.stringify_hash_key(props) if props
  @loader = Base.find_loader(filename).new(filename, props)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.