Module: CDQ::Deprecation

Included in:
CDQContextManager
Defined in:
motion/cdq/deprecation.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.silence_deprecationObject

Returns the value of attribute silence_deprecation


6
7
8
# File 'motion/cdq/deprecation.rb', line 6

def silence_deprecation
  @silence_deprecation
end

Instance Method Details

#deprecate(message) ⇒ Object


9
10
11
# File 'motion/cdq/deprecation.rb', line 9

def deprecate(message)
  puts message unless CDQ::Deprecation.silence_deprecation
end