Class: Imanip::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/imanip/image.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, interface = :magick) ⇒ Image

Returns a new instance of Image.



4
5
6
7
# File 'lib/imanip/image.rb', line 4

def initialize(path,interface = :magick)
  @image_path = path
  load_interface(interface)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object (private)



14
15
16
# File 'lib/imanip/image.rb', line 14

def method_missing(method, *args)
  @interface.send(method,*args)
end