Module: SwaggeruiLocal
- Defined in:
- lib/swaggerui_local.rb,
lib/swaggerui_local/version.rb
Constant Summary collapse
- VERSION =
'0.0.2'.freeze
Class Method Summary collapse
Class Method Details
.render_html(path_to_json = '') ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/swaggerui_local.rb', line 5 def render_html(path_to_json = '') template_path = File.join( File.dirname(__FILE__), 'swaggerui_local/html.html' ) File .open(template_path, 'r') .read .gsub('<%json_url_here%>', path_to_json) end |