Sha256: 291745178b8af46c8a80e6c717eaecbe85cb61029dc79dcd5d4a576580ddb492

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

module Darthjee
  module CoreExt
    module Object
      def is_any?(*classes)
        classes.any? do |clazz|
          is_a?(clazz)
        end
      end
    end
  end
end

class Object
  include Darthjee::CoreExt::Object
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
darthjee-core_ext-1.7.4 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.7.3 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.7.2 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.7.1 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.7.0 lib/darthjee/core_ext/object.rb