Sha256: b1fa4ac1b775ab3244d8cda677bab2d576eb4fedd6ab17dad701d756ad943077

Contents?: true

Size: 152 Bytes

Versions: 4

Compression:

Stored size: 152 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
darthjee-core_ext-1.5.6 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.5.5 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.5.4 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.5.3 lib/darthjee/core_ext/object.rb