Class: Effective::AssetStringIO
- Inherits:
-
StringIO
- Object
- StringIO
- Effective::AssetStringIO
- Defined in:
- app/models/effective/asset.rb
Instance Attribute Summary collapse
-
#filepath ⇒ Object
Returns the value of attribute filepath.
Instance Method Summary collapse
-
#initialize(*args) ⇒ AssetStringIO
constructor
A new instance of AssetStringIO.
- #original_filename ⇒ Object
Constructor Details
#initialize(*args) ⇒ AssetStringIO
Returns a new instance of AssetStringIO.
290 291 292 293 |
# File 'app/models/effective/asset.rb', line 290 def initialize(*args) super(*args[1..-1]) @filepath = args[0] end |
Instance Attribute Details
#filepath ⇒ Object
Returns the value of attribute filepath.
288 289 290 |
# File 'app/models/effective/asset.rb', line 288 def filepath @filepath end |
Instance Method Details
#original_filename ⇒ Object
295 296 297 |
# File 'app/models/effective/asset.rb', line 295 def original_filename File.basename(filepath) end |