Sha256: b8d30081f13902ef201fe89c7f8268f7e7f8774aed4a75f9416c6df3dba17405
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
module PacketGen # Deprecation module # @since 2.7.0 # @author Sylvain Daubert # @api private module Deprecation def self.deprecated(klass, deprecated_method, new_method, klass_method: false, remove_version: '3.0.0') separator = klass_method ? '.' : '#' base_name = klass.to_s + separator complete_deprecated_method_name = base_name + deprecated_method.to_s complete_new_method_name = base_name + new_method.to_s warn "#{complete_deprecated_method_name} is deprecated in favor of #{complete_new_method_name}. " \ "It will be remove in PacketGen #{remove_version}." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
packetgen-2.8.1 | lib/packetgen/deprecation.rb |
packetgen-2.8.0 | lib/packetgen/deprecation.rb |
packetgen-2.7.0 | lib/packetgen/deprecation.rb |