Module: Object::InMethod
- Included in:
- Object
- Defined in:
- lib/vex/base/object/in.rb
Overview
short inspect method on all objects.
“abcdefghijklmnopabcdefghijklmnopabcdefghijklmnopabcdefghijklmnop”.insp
-> "abcdefghijklmnopabcdefghijk..."
Model.find(1).insp
-> "<Model#1>"
Defined Under Namespace
Modules: Etest
Instance Method Summary collapse
Instance Method Details
#in?(collection) ⇒ Boolean
10 11 12 |
# File 'lib/vex/base/object/in.rb', line 10 def in?(collection) collection.include?(self) end |