Class: Hanami::Application

Inherits:
Object
  • Object
show all
Defined in:
gems/gems/hanami-1.3.3/lib/hanami/application.rb

Overview

A full stack Hanami application

Examples:

require 'hanami'

module Bookshelf
  class Application < Hanami::Application
  end
end

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Array

Process a request. This method makes Hanami applications compatible with the Rack protocol.

Parameters:

  • env (Hash)

    a Rack env

Returns:

  • (Array)

    a serialized Rack response

See Also:

Since:

  • 0.1.0

def call(env)
  renderer.render(env, middleware.call(env))
end