Module: BlueprintAgreement::Config

Defined in:
lib/blueprint_agreement.rb

Class Method Summary collapse

Class Method Details

.configure(&block) ⇒ Object



56
57
58
59
# File 'lib/blueprint_agreement.rb', line 56

def configure(&block)
  warn "[DEPRECATION] `BlueprintAgreement::Config` is deprecated.  Please use `BlueprintAgreement.configuration` instead."
  BlueprintAgreement.configure(&block)
end

.method_missing(name, *args) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/blueprint_agreement.rb', line 61

def method_missing(name, *args)
  warn "[DEPRECATION] `BlueprintAgreement::Config` methods are  deprecated.  Please use `BlueprintAgreement.configuration` instead."
  configuration = BlueprintAgreement.configuration;
  return configuration.send(name) if name.to_s =~ /^(\w*)$/
  return configuration.send(name, *args)  if name.to_s =~ /^(\w*)=$/
  super
end