Sha256: 87da49cdedd8c9532967f5e56c9a87bcb5e137e247f18b78bc6173eec5b669a3

Contents?: true

Size: 271 Bytes

Versions: 3

Compression:

Stored size: 271 Bytes

Contents

module Transproc
  module Deprecations
    def self.announce(name, msg)
      warn <<-MSG.gsub(/^\s+/, '')
        #{name} is deprecated and will be removed in 1.0.0.
        #{msg}
        #{caller.detect { |l| !l.include?('lib/transproc')}}
      MSG
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transproc-0.3.2 lib/transproc/support/deprecations.rb
transproc-0.3.1 lib/transproc/support/deprecations.rb
transproc-0.3.0 lib/transproc/support/deprecations.rb