Class: Paperclip::NilAdapter
- Inherits:
-
Object
- Object
- Paperclip::NilAdapter
- Defined in:
- lib/paperclip/io_adapters/nil_adapter.rb
Instance Method Summary collapse
- #content_type ⇒ Object
- #eof? ⇒ Boolean
-
#initialize(target) ⇒ NilAdapter
constructor
A new instance of NilAdapter.
- #nil? ⇒ Boolean
- #original_filename ⇒ Object
- #read(*args) ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize(target) ⇒ NilAdapter
Returns a new instance of NilAdapter.
3 4 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 3 def initialize(target) end |
Instance Method Details
#content_type ⇒ Object
10 11 12 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 10 def content_type "" end |
#eof? ⇒ Boolean
26 27 28 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 26 def eof? true end |
#nil? ⇒ Boolean
18 19 20 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 18 def nil? true end |
#original_filename ⇒ Object
6 7 8 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 6 def original_filename "" end |
#read(*args) ⇒ Object
22 23 24 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 22 def read(*args) nil end |
#size ⇒ Object
14 15 16 |
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 14 def size 0 end |