Module: Konfa::Deprecation::ClassMethods

Defined in:
lib/konfa/deprecation.rb

Constant Summary collapse

@@deprecation_warnings =
true

Instance Method Summary collapse

Instance Method Details

#deprecated(*args) ⇒ Object



18
19
20
# File 'lib/konfa/deprecation.rb', line 18

def deprecated(*args)
  warn(*args) if @@deprecation_warnings
end

#deprecation_warningsObject



14
15
16
# File 'lib/konfa/deprecation.rb', line 14

def deprecation_warnings
  @@deprecation_warnings
end

#deprecation_warnings=(val) ⇒ Object



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

def deprecation_warnings=(val)
  @@deprecation_warnings = val
end