Class: Showcase::Options::Context

Inherits:
Showcase::Options show all
Defined in:
lib/showcase/options.rb

Constant Summary

Constants inherited from Showcase::Options

DEFAULT_OMITTED

Instance Attribute Summary

Attributes inherited from Showcase::Options

#contexts

Instance Method Summary collapse

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, options, **kwargs)
  super(view_context)
  @options = options
  kwargs.each { instance_variable_set(:"@#{_1}", _2) }
end