Module: ViewComponentProps::Definable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/view_component_props/definable.rb
Instance Method Summary collapse
Instance Method Details
#after_initialize ⇒ Object
40 |
# File 'lib/view_component_props/definable.rb', line 40 def after_initialize; end |
#setup_props_for(props) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/view_component_props/definable.rb', line 32 def setup_props_for(props) enforce_defined_props!(props) if undefined_props_rejected? indifferent_props = props.with_indifferent_access @raw_props = props.dup.freeze @props = resolve_props(indifferent_props).freeze end |