Sha256: 1fbae1e1a814678c48cfa1ac515b42ae9c73a56633fa32c036ad930484700d70
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
# frozen_string_literal: true module Kind module Is def self.call(expected, object) DEPRECATION.warn_method_replacement('Kind::Is.call', 'Kind::KIND.is?') KIND.is?(expected, object) end def self.Class(value) DEPRECATION.warn_method_replacement('Kind::Is.Class', 'Kind.of_class?') Kind.of_class?(value) end def self.Module(value) DEPRECATION.warn_method_replacement('Kind::Is.Module', 'Kind.of_module?') Kind.of_module?(value) end def self.Boolean(value) DEPRECATION.warn_removal('Kind::Is.Boolean') Kind::Class[value] <= TrueClass || value <= FalseClass end def self.Callable(value) DEPRECATION.warn_method_replacement('Kind::Is.Callable', 'Kind::Callable?') value.respond_to?(:call) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kind-4.1.0 | lib/kind/deprecations/is.rb |
kind-4.0.0 | lib/kind/deprecations/is.rb |