Class: Paperclip::EmptyStringAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- Paperclip::EmptyStringAdapter
- Defined in:
- lib/paperclip/io_adapters/empty_string_adapter.rb
Constant Summary
Constants inherited from AbstractAdapter
AbstractAdapter::OS_RESTRICTED_CHARACTERS
Instance Attribute Summary
Attributes inherited from AbstractAdapter
#content_type, #original_filename, #size, #tempfile
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractAdapter
#fingerprint, #initialize, #inspect, #read
Constructor Details
This class inherits a constructor from Paperclip::AbstractAdapter
Class Method Details
.register ⇒ Object
3 4 5 6 7 |
# File 'lib/paperclip/io_adapters/empty_string_adapter.rb', line 3 def self.register Paperclip.io_adapters.register self do |target| target.is_a?(String) && target.empty? end end |
Instance Method Details
#assignment? ⇒ Boolean
13 14 15 |
# File 'lib/paperclip/io_adapters/empty_string_adapter.rb', line 13 def assignment? false end |
#nil? ⇒ Boolean
9 10 11 |
# File 'lib/paperclip/io_adapters/empty_string_adapter.rb', line 9 def nil? false end |