Class: Quirc::ImageProcessor
- Inherits:
-
Object
- Object
- Quirc::ImageProcessor
- Defined in:
- lib/quirc/image_processor.rb
Direct Known Subclasses
Defined Under Namespace
Classes: MiniMagick, Vips
Instance Attribute Summary collapse
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
Instance Method Summary collapse
-
#initialize(path) ⇒ ImageProcessor
constructor
A new instance of ImageProcessor.
- #to_grayscale ⇒ Object
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
#pathname ⇒ Object (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_grayscale ⇒ Object
12 13 14 |
# File 'lib/quirc/image_processor.rb', line 12 def to_grayscale(*) raise NotImplementedError end |