Class: Paperclip::NilAdapter
Constant Summary
AbstractAdapter::OS_RESTRICTED_CHARACTERS
Instance Method Summary
collapse
#assignment?, #fingerprint, #inspect
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
|