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

.configurationObject



18
19
20
# File 'lib/view_component/props.rb', line 18

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



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