Class: Moon::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/moon/context.rb

Overview

Context class that contains anything necessary to run a guard, action or response builder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session = { }, parameters = { }) ⇒ Context

Returns a new instance of Context.



7
8
9
# File 'lib/moon/context.rb', line 7

def initialize(session = { }, parameters = { })
  @session, @parameters = session, parameters
end

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



5
6
7
# File 'lib/moon/context.rb', line 5

def application
  @application
end