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.
251 252 253 254 |
# File 'app/models/effective/asset.rb', line 251 def initialize(*args) super(*args[1..-1]) @filepath = args[0] end |
Instance Attribute Details
#filepath ⇒ Object
Returns the value of attribute filepath.
249 250 251 |
# File 'app/models/effective/asset.rb', line 249 def filepath @filepath end |
Instance Method Details
#original_filename ⇒ Object
256 257 258 |
# File 'app/models/effective/asset.rb', line 256 def original_filename File.basename(filepath) end |