Skip to content

Commit

Permalink
More comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
marciofrayze committed Feb 17, 2016
1 parent c57e71f commit 6721f6c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/rackstep.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# This is where we define an abstract class with the base of
# a RackStep app. This class MUST be extended by the user.
# In this file you will find the RackStep::App class.
# This is one of the fundamental parts of the framework and
# is responsable for the whole orchestration.
# To use RackStep one of the first things you will have to
# do is extend this class.

require 'rack'
require_relative 'response'
Expand All @@ -10,6 +13,8 @@

module RackStep

# Abstract class with the base of a RackStep app.
# This class MUST be extended by the user.
class App

# Will store the received request which will be injected into the user controllers.
Expand All @@ -30,6 +35,7 @@ def self.call(env)
new(env).process_request
end

# Initialize all instance variables and add a default "not found" route.
def initialize(env)
@request = Rack::Request.new(env)
@settings = RackStep::GlobalConfiguration.instance.settings
Expand Down

0 comments on commit 6721f6c

Please sign in to comment.