Sha256: 705fcfe743481935d12232b0f725ccda8b29e4add0031811d180bc1379e3f995

Contents?: true

Size: 102 Bytes

Versions: 2

Compression:

Stored size: 102 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
darthjee-core_ext-1.5.2 lib/darthjee/core_ext/object.rb
darthjee-core_ext-1.5.1 lib/darthjee/core_ext/object.rb