Sha256: 4cd47a9d36eccd3903f702e3184de37a04f11e1cd0689f2fedc0d7a67bcec645
Contents?: true
Size: 322 Bytes
Versions: 58
Compression:
Stored size: 322 Bytes
Contents
# frozen_string_literal: true module GoodJob # An object that has case-equality to a Proc or Lambda by responding to #call. # This can be used to duck-type match in a case statement. module Callable # Whether the object responds to #call def self.===(other) other.respond_to?(:call) end end end
Version data entries
58 entries across 58 versions & 1 rubygems