Class: Quirc::ImageProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/quirc/image_processor.rb

Direct Known Subclasses

MiniMagick, Vips

Defined Under Namespace

Classes: MiniMagick, Vips

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ImageProcessor

Returns a new instance of ImageProcessor.



8
9
10
# File 'lib/quirc/image_processor.rb', line 8

def initialize(path)
  @pathname = Pathname.new(path)
end

Instance Attribute Details

#pathnameObject (readonly)

Returns the value of attribute pathname.



6
7
8
# File 'lib/quirc/image_processor.rb', line 6

def pathname
  @pathname
end

Instance Method Details

#to_grayscaleObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/quirc/image_processor.rb', line 12

def to_grayscale(*)
  raise NotImplementedError
end