Class: ContextExposer::ViewContext
- Inherits:
-
Object
- Object
- ContextExposer::ViewContext
- Defined in:
- lib/context_exposer/view_context.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
Instance Method Summary collapse
-
#initialize(controller = nil) ⇒ ViewContext
constructor
A new instance of ViewContext.
Constructor Details
#initialize(controller = nil) ⇒ ViewContext
Returns a new instance of ViewContext.
4 5 6 |
# File 'lib/context_exposer/view_context.rb', line 4 def initialize controller = nil @controller = controller end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
2 3 4 |
# File 'lib/context_exposer/view_context.rb', line 2 def controller @controller end |