Sha256: 3825f2fc5a549722da6ee6b31840c1e5dc4e9d12eb00513b738d25cc23d43526

Contents?: true

Size: 107 Bytes

Versions: 1

Compression:

Stored size: 107 Bytes

Contents

class Object
  def is_one_of_a?(*types)
    types.flatten.any? { |t| self.class.to_s == t.to_s }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
separatum-0.1.0 lib/separatum/object.rb