Method: AssetLibrary::AssetModule#contents
- Defined in:
- lib/asset_library/asset_module.rb
#contents(format = nil) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/asset_library/asset_module.rb', line 52 def contents(format = nil) s = StringIO.new assets(format).each do |asset| File.open(asset.absolute_path, 'r') do |infile| s.write(infile.read) end end s.rewind s end |