Method: Betterdocs::Global.each_swagger_asset
- Defined in:
- lib/betterdocs/global.rb
.each_swagger_asset ⇒ Object
144 145 146 147 148 149 150 151 152 153 |
# File 'lib/betterdocs/global.rb', line 144 def each_swagger_asset swagger_assets.each do |(path, destination)| path = path.to_s if destination == :root yield path, File.join(swagger_output_directory.to_s, File.basename(path)) else yield path, File.join(swagger_output_directory.to_s, destination.to_str) end end end |