Class: Landline::ProcessorContext
- Inherits:
-
Object
- Object
- Landline::ProcessorContext
- Defined in:
- lib/landline/sandbox.rb
Overview
Execution context for filters and preprocessors.
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(path) ⇒ ProcessorContext
constructor
A new instance of ProcessorContext.
Methods included from DSL::ProbeConstructors
Methods included from DSL::ProbeMethods
#call, #cookie, #defer, #delete_cookie, #delete_header, #escape_html, #file, #form, #form?, #header, #hijack, #json, #json?, #jump, #partial_hijack, #query, #query?, #query_shallow, #redirect, #redirect_with_method, #request, #session, #status, #unescape_html
Methods included from DSL::CommonMethods
Constructor Details
#initialize(path) ⇒ ProcessorContext
Returns a new instance of ProcessorContext.
15 16 17 |
# File 'lib/landline/sandbox.rb', line 15 def initialize(path) @origin = path end |
Instance Attribute Details
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
19 20 21 |
# File 'lib/landline/sandbox.rb', line 19 def origin @origin end |