Class: Landline::ProcessorContext

Inherits:
Object
  • Object
show all
Includes:
DSL::CommonMethods, DSL::ProbeConstructors, DSL::ProbeMethods
Defined in:
lib/landline/sandbox.rb

Overview

Execution context for filters and preprocessors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL::ProbeConstructors

#erb, #erubi

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

#bounce, #die

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

#originObject (readonly)

Returns the value of attribute origin.



19
20
21
# File 'lib/landline/sandbox.rb', line 19

def origin
  @origin
end