Module: FDimagePath

Defined in:
lib/fdimage/fdimage_path.rb

Instance Method Summary collapse

Instance Method Details

#initialize(data) ⇒ Object



2
3
4
5
6
7
# File 'lib/fdimage/fdimage_path.rb', line 2

def initialize(data)
  data = Pathname.new(data)
  if data.exist?
    @image = MiniMagick::Image.open(data.to_s)
  end
end