Module: YamlCspConfig

Defined in:
lib/yaml_csp_config.rb,
lib/yaml_csp_config/railtie.rb,
lib/yaml_csp_config/version.rb,
lib/yaml_csp_config/yaml_loader.rb,
lib/generators/yaml_csp_config/install_generator.rb

Overview

Exposes a configuration class for initializer

Defined Under Namespace

Modules: Generators Classes: Configuration, Railtie, YamlLoader

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



10
11
12
# File 'lib/yaml_csp_config.rb', line 10

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



14
15
16
17
# File 'lib/yaml_csp_config.rb', line 14

def configure
  yield(configuration) if block_given?
  configuration
end