Class: RSX::Context::ProviderComponent
- Inherits:
-
Object
- Object
- RSX::Context::ProviderComponent
- Defined in:
- lib/rsx/context.rb
Overview
A component-like object: anything answering to rsx_call can be rendered.
Instance Method Summary collapse
-
#initialize(context) ⇒ ProviderComponent
constructor
A new instance of ProviderComponent.
- #name ⇒ Object
- #rsx_call(props = nil, _parent = nil) ⇒ Object
Constructor Details
#initialize(context) ⇒ ProviderComponent
Returns a new instance of ProviderComponent.
53 54 55 |
# File 'lib/rsx/context.rb', line 53 def initialize(context) @context = context end |
Instance Method Details
#name ⇒ Object
57 58 59 |
# File 'lib/rsx/context.rb', line 57 def name "#{@context.name || "Context"}.Provider" end |