Module: Sinatra::Swagger::SwaggerLinked

Defined in:
lib/sinatra/swagger/swagger_linked.rb

Defined Under Namespace

Modules: Helpers

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



10
11
12
# File 'lib/sinatra/swagger/swagger_linked.rb', line 10

def self.registered(app)
  app.helpers Helpers
end

Instance Method Details

#swagger(filepath) ⇒ Object



6
7
8
# File 'lib/sinatra/swagger/swagger_linked.rb', line 6

def swagger(filepath)
  set :swagger, ::Swagger::Base.from_file(filepath)
end