Class: Wee::RenderingContext
- Defined in:
- lib/wee/core/context.rb,
lib/wee/adaptors/nitro.rb,
lib/wee/adaptors/rails.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#component_name ⇒ Object
Returns the value of attribute component_name.
-
#context ⇒ Object
Returns the value of attribute context.
-
#controller ⇒ Object
Returns the value of attribute controller.
-
#document ⇒ Object
Returns the value of attribute document.
-
#redirect_action ⇒ Object
Returns the value of attribute redirect_action.
Instance Method Summary collapse
-
#initialize(context = nil, callbacks = nil, document = nil) ⇒ RenderingContext
constructor
A new instance of RenderingContext.
- #request ⇒ Object
- #response ⇒ Object
- #session ⇒ Object
Constructor Details
#initialize(context = nil, callbacks = nil, document = nil) ⇒ RenderingContext
Returns a new instance of RenderingContext.
12 13 14 |
# File 'lib/wee/core/context.rb', line 12 def initialize(context=nil, callbacks=nil, document=nil) @context, @callbacks, @document = context, callbacks, document end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
10 11 12 |
# File 'lib/wee/core/context.rb', line 10 def callbacks @callbacks end |
#component_name ⇒ Object
Returns the value of attribute component_name.
26 27 28 |
# File 'lib/wee/adaptors/nitro.rb', line 26 def component_name @component_name end |
#context ⇒ Object
Returns the value of attribute context.
10 11 12 |
# File 'lib/wee/core/context.rb', line 10 def context @context end |
#controller ⇒ Object
Returns the value of attribute controller.
27 28 29 |
# File 'lib/wee/adaptors/nitro.rb', line 27 def controller @controller end |
#document ⇒ Object
Returns the value of attribute document.
10 11 12 |
# File 'lib/wee/core/context.rb', line 10 def document @document end |
#redirect_action ⇒ Object
Returns the value of attribute redirect_action.
28 29 30 |
# File 'lib/wee/adaptors/nitro.rb', line 28 def redirect_action @redirect_action end |
Instance Method Details
#request ⇒ Object
16 17 18 |
# File 'lib/wee/core/context.rb', line 16 def request @context.request end |
#response ⇒ Object
20 21 22 |
# File 'lib/wee/core/context.rb', line 20 def response @context.response end |
#session ⇒ Object
24 25 26 |
# File 'lib/wee/core/context.rb', line 24 def session @context.session end |