Module: Stimul8::Component::Create
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/stimul8/component/create.rb
Instance Method Summary collapse
Instance Method Details
#initialize(context: nil, component_id: nil, attributes: {}, **properties, &contents) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/stimul8/component/create.rb', line 6 def initialize context: nil, component_id: nil, attributes: {}, **properties, &contents @context = context @component_id = component_id @attributes = attributes @contents = contents properties.each do |key, value| send(:"#{key}=", value) end end |