Class: Paperclip::DocsplitProcessor
- Inherits:
-
Processor
- Object
- Processor
- Paperclip::DocsplitProcessor
- Defined in:
- lib/docsplit-paperclip-processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attachment ⇒ Object
Returns the value of attribute attachment.
-
#options ⇒ Object
Returns the value of attribute options.
-
#src ⇒ Object
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(file, options = {}, attachment = nil) ⇒ DocsplitProcessor
constructor
A new instance of DocsplitProcessor.
Constructor Details
#initialize(file, options = {}, attachment = nil) ⇒ DocsplitProcessor
Returns a new instance of DocsplitProcessor.
8 9 10 11 12 13 14 |
# File 'lib/docsplit-paperclip-processor.rb', line 8 def initialize(file, = {}, = nil) super @src = file @options = @attachment = @basename = File.basename(@file.path, '.*') end |
Instance Attribute Details
#attachment ⇒ Object
Returns the value of attribute attachment.
6 7 8 |
# File 'lib/docsplit-paperclip-processor.rb', line 6 def @attachment end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/docsplit-paperclip-processor.rb', line 6 def @options end |
#src ⇒ Object
Returns the value of attribute src.
6 7 8 |
# File 'lib/docsplit-paperclip-processor.rb', line 6 def src @src end |