Class: Effective::AssetStringIO

Inherits:
StringIO
  • Object
show all
Defined in:
app/models/effective/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AssetStringIO

Returns a new instance of AssetStringIO.



293
294
295
296
# File 'app/models/effective/asset.rb', line 293

def initialize(*args)
  super(*args[1..-1])
  @filepath = args[0]
end

Instance Attribute Details

#filepathObject

Returns the value of attribute filepath.



291
292
293
# File 'app/models/effective/asset.rb', line 291

def filepath
  @filepath
end

Instance Method Details

#original_filenameObject



298
299
300
# File 'app/models/effective/asset.rb', line 298

def original_filename
  File.basename(filepath)
end