Class: Moon::Context
- Inherits:
-
Object
- Object
- Moon::Context
- 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
-
#application ⇒ Object
Returns the value of attribute application.
Instance Method Summary collapse
-
#initialize(session = { }, parameters = { }) ⇒ Context
constructor
A new instance of Context.
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
#application ⇒ Object
Returns the value of attribute application.
5 6 7 |
# File 'lib/moon/context.rb', line 5 def application @application end |