Module: Deprecatable
- Extended by:
- Decoratable
- Defined in:
- lib/decoratable/deprecatable.rb
Instance Method Summary collapse
Methods included from Decoratable
Instance Method Details
#deprecatable(logger = Logger.new(STDOUT)) ⇒ Object
8 9 10 11 |
# File 'lib/decoratable/deprecatable.rb', line 8 def deprecatable(logger = Logger.new(STDOUT)) logger.warn("#{__decorated_method__.name} is deprecated. Called from: #{__original_caller__[0]}") yield end |