Sha256: 776db5e8a2bd9f6ba982e7fd53e13e9dc983ac731b898dc5214d1c4672a279e5

Contents?: true

Size: 183 Bytes

Versions: 3

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

require 'darthjee/core_ext/object/default_value'

class Object
  def is_any?(*classes)
    classes.any? do |clazz|
      is_a?(clazz)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
darthjee-core_ext-1.6.2 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.6.1 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.6.0 lib/darthjee/core_ext/object.rb