class Slipsquare::Middleware::Base
A base middleware class to initalize.
Constants
- CLEAR
Some colors for making things pretty.
- GREEN
- RED
- YELLOW
Public Class Methods
new(app)
click to toggle source
# File lib/slipsquare/middleware/base.rb, line 15 def initialize(app) @app = app # This resets the color to "clear" on the user's terminal. say "", :clear, false end
Public Instance Methods
call(env)
click to toggle source
# File lib/slipsquare/middleware/base.rb, line 21 def call(env) @app.call(env) end