Class: Minimage::Processor::Base
- Inherits:
-
Object
- Object
- Minimage::Processor::Base
- Defined in:
- lib/minimage/processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
- #fill(width, height = nil, gravity = nil) ⇒ Object
- #fit(width, height = nil, gravity = nil) ⇒ Object
- #format(format) ⇒ Object
-
#initialize(stream, format = nil) ⇒ Base
constructor
A new instance of Base.
- #limit(width, height = nil, gravity = nil) ⇒ Object
- #scale(width, height = nil, gravity = nil) ⇒ Object
Constructor Details
#initialize(stream, format = nil) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/minimage/processor.rb', line 6 def initialize(stream, format = nil) @format = format @stream = stream end |
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
4 5 6 |
# File 'lib/minimage/processor.rb', line 4 def stream @stream end |
Instance Method Details
#fill(width, height = nil, gravity = nil) ⇒ Object
19 20 21 |
# File 'lib/minimage/processor.rb', line 19 def fill(width, height = nil, gravity = nil) raise NotImplementedError.new end |
#fit(width, height = nil, gravity = nil) ⇒ Object
23 24 25 |
# File 'lib/minimage/processor.rb', line 23 def fit(width, height = nil, gravity = nil) raise NotImplementedError.new end |
#format(format) ⇒ Object
11 12 13 |
# File 'lib/minimage/processor.rb', line 11 def format(format) raise NotImplementedError.new end |
#limit(width, height = nil, gravity = nil) ⇒ Object
15 16 17 |
# File 'lib/minimage/processor.rb', line 15 def limit(width, height = nil, gravity = nil) raise NotImplementedError.new end |
#scale(width, height = nil, gravity = nil) ⇒ Object
27 28 29 |
# File 'lib/minimage/processor.rb', line 27 def scale(width, height = nil, gravity = nil) raise NotImplementedError.new end |