Method: Betterdocs::Global.each_asset
- Defined in:
- lib/betterdocs/global.rb
.each_asset ⇒ Object
Maps the assets original source path to its destination path in the output by yielding to every asset’s source/destination pair.
133 134 135 136 137 138 139 140 141 142 |
# File 'lib/betterdocs/global.rb', line 133 def each_asset assets.each do |(path, destination)| path = path.to_s if destination == :root yield path, File.join(output_directory.to_s, File.basename(path)) else yield path, File.join(output_directory.to_s, destination.to_str) end end end |