Class: NamedStringIO
- Inherits:
-
StringIO
- Object
- StringIO
- NamedStringIO
- Defined in:
- lib/paperclip/staging.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#original_filename ⇒ Object
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(text, filename, type) ⇒ NamedStringIO
constructor
A new instance of NamedStringIO.
Constructor Details
#initialize(text, filename, type) ⇒ NamedStringIO
Returns a new instance of NamedStringIO.
12 13 14 15 16 |
# File 'lib/paperclip/staging.rb', line 12 def initialize(text, filename, type) super(text) self.original_filename = filename self.content_type = type end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
10 11 12 |
# File 'lib/paperclip/staging.rb', line 10 def content_type @content_type end |
#original_filename ⇒ Object
Returns the value of attribute original_filename.
9 10 11 |
# File 'lib/paperclip/staging.rb', line 9 def original_filename @original_filename end |