Module: ViewComponentProps::Casters
- Defined in:
- lib/view_component_props/casters.rb,
lib/view_component_props/casters/base.rb
Defined Under Namespace
Classes: Base
Class Method Summary collapse
Class Method Details
.fetch(key) ⇒ Object
19 20 21 |
# File 'lib/view_component_props/casters.rb', line 19 def fetch(key) registry.fetch(key) end |
.known?(key) ⇒ Boolean
23 24 25 |
# File 'lib/view_component_props/casters.rb', line 23 def known?(key) registry.key?(key) end |
.reset! ⇒ Object
27 28 29 |
# File 'lib/view_component_props/casters.rb', line 27 def reset! self.registry = Base.base_casters.merge(ViewComponentProps.configuration.custom_casters) end |