Sha256: 254ca67c54d1c2e937b3fa2f81581a852cd6bb042a52e38d874667ed77e45106
Contents?: true
Size: 397 Bytes
Versions: 7
Compression:
Stored size: 397 Bytes
Contents
module Alba # Module for printing deprecation warning module Deprecation # Similar to {Kernel.warn} but prints caller as well # # @param message [String] main message to print # @return void def warn(message) Kernel.warn(message) Kernel.warn(caller_locations(2..2).first) # For performance reason we use (2..2).first end module_function :warn end end
Version data entries
7 entries across 7 versions & 1 rubygems