Class: CasualAPI::Casual
- Inherits:
-
Object
- Object
- CasualAPI::Casual
- Defined in:
- lib/casual.rb
Overview
RackApp
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(prefix, file, mode) ⇒ Casual
constructor
A new instance of Casual.
Constructor Details
#initialize(prefix, file, mode) ⇒ Casual
Returns a new instance of Casual.
10 11 12 13 14 |
# File 'lib/casual.rb', line 10 def initialize(prefix, file, mode) @prefix = prefix @file = file @mode = mode end |
Instance Method Details
#call(env) ⇒ Object
16 17 18 19 20 |
# File 'lib/casual.rb', line 16 def call(env) @env = env @req = Rack::Request.new(env) fire_action end |