class Swagger::Generators::LayoutGenerator
Public Class Methods
source_root()
click to toggle source
# File lib/generators/swagger/layout/layout_generator.rb, line 6 def self.source_root File.expand_path('../templates', __FILE__) end
Public Instance Methods
create_swagger_layout()
click to toggle source
# File lib/generators/swagger/layout/layout_generator.rb, line 10 def create_swagger_layout template 'swagger.html.haml', File.join('app', 'views', 'layouts', 'swagger.html.haml') end