Sha256: 14500e9e5885a109fda3e4a63e91851f1c97e00ab7ff3f68cb3a113839eb05a1

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

#
# short inspect method on all objects.
#
# "abcdefghijklmnopabcdefghijklmnopabcdefghijklmnopabcdefghijklmnop".insp
#    -> "abcdefghijklmnopabcdefghijk..."
# Model.find(1).insp 
#    -> "<Model#1>"

class Object
  def in?(collection)
    collection.include?(self)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vex-0.3.3 lib/vex/base/object/in.rb