Class: Paperclip::NilAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/io_adapters/nil_adapter.rb

Instance Method Summary collapse

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_typeObject



10
11
12
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 10

def content_type
  ""
end

#eof?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 26

def eof?
  true
end

#nil?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 18

def nil?
  true
end

#original_filenameObject



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

#sizeObject



14
15
16
# File 'lib/paperclip/io_adapters/nil_adapter.rb', line 14

def size
  0
end