Module: ViewComponent::Props
- Extended by:
- ActiveSupport::Autoload, ActiveSupport::Concern
- Defined in:
- lib/view_component/props.rb,
lib/view_component/props/errors.rb,
lib/view_component/props/version.rb,
lib/view_component/props/configuration.rb
Defined Under Namespace
Classes: Configuration, Error
Constant Summary
collapse
- VERSION =
"0.0.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
18
19
20
|
# File 'lib/view_component/props.rb', line 18
def configuration
@configuration ||= Configuration.new
end
|
22
23
24
|
# File 'lib/view_component/props.rb', line 22
def configure
yield(configuration)
end
|
.reset_configuration! ⇒ Object
26
27
28
|
# File 'lib/view_component/props.rb', line 26
def reset_configuration!
@configuration = Configuration.new
end
|