class WCC::Contentful::App::Configuration::FrozenConfiguration
Attributes
wcc_contentful_config[R]
Public Class Methods
new(configuration, frozen_wcc_contentful_config)
click to toggle source
# File lib/wcc/contentful/app/configuration.rb, line 42 def initialize(configuration, frozen_wcc_contentful_config) unless frozen_wcc_contentful_config.frozen? raise ArgumentError, 'Please first freeze the wcc_contentful_config' end @wcc_contentful_config = frozen_wcc_contentful_config ATTRIBUTES.each do |att| val = configuration.public_send(att) val.freeze if val.respond_to?(:freeze) instance_variable_set("@#{att}", val) end end
Public Instance Methods
frozen?()
click to toggle source
# File lib/wcc/contentful/app/configuration.rb, line 56 def frozen? true end