Module: ViewComponentAttributes::WithUnknownAttributes
- Extended by:
- ActiveSupport::Concern
- Includes:
- WithAttributes
- Included in:
- WithRootAttributes
- Defined in:
- lib/view_component_attributes/with_unknown_attributes.rb
Instance Method Summary collapse
Methods included from WithAttributes
Instance Method Details
#assign_unknown_attribute(attribute_name, value) ⇒ Object
14 15 16 |
# File 'lib/view_component_attributes/with_unknown_attributes.rb', line 14 def assign_unknown_attribute(attribute_name, value) unknown_attributes[attribute_name.to_sym] = value end |
#unknown_attributes ⇒ Object
18 19 20 |
# File 'lib/view_component_attributes/with_unknown_attributes.rb', line 18 def unknown_attributes @unknown_attributes ||= {} end |