Class: Showcase::Options::Context
- Inherits:
-
Showcase::Options
- Object
- Showcase::Options
- Showcase::Options::Context
- Defined in:
- lib/showcase/options.rb
Constant Summary
Constants inherited from Showcase::Options
Instance Attribute Summary
Attributes inherited from Showcase::Options
Instance Method Summary collapse
-
#initialize(view_context, options, **kwargs) ⇒ Context
constructor
A new instance of Context.
Methods inherited from Showcase::Options
#context, define, #each, #headers, #option, #optional, #required
Constructor Details
#initialize(view_context, options, **kwargs) ⇒ Context
Returns a new instance of Context.
73 74 75 76 77 |
# File 'lib/showcase/options.rb', line 73 def initialize(view_context, , **kwargs) super(view_context) @options = kwargs.each { instance_variable_set(:"@#{_1}", _2) } end |