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.
- #src_path ⇒ Object
Constructor Details
#initialize(file, options = {}, attachment = nil) ⇒ DocsplitProcessor
Returns a new instance of DocsplitProcessor.
9 10 11 12 13 14 15 |
# File 'lib/docsplit-paperclip-processor.rb', line 9 def initialize(file, = {}, = nil) super @src = file = = @basename = File.basename(@file.path, '.*') end |
Instance Attribute Details
#attachment ⇒ Object
Returns the value of attribute attachment.
7 8 9 |
# File 'lib/docsplit-paperclip-processor.rb', line 7 def end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/docsplit-paperclip-processor.rb', line 7 def end |
#src ⇒ Object
Returns the value of attribute src.
7 8 9 |
# File 'lib/docsplit-paperclip-processor.rb', line 7 def src @src end |
Instance Method Details
#src_path ⇒ Object
17 18 19 |
# File 'lib/docsplit-paperclip-processor.rb', line 17 def src_path File.(@src.path) end |