Sha256: 750cc9117997bd313b2c3dd0296d3bf3d37f5722ae127b4ffe5dce5039a14cf3
Contents?: true
Size: 392 Bytes
Versions: 28
Compression:
Stored size: 392 Bytes
Contents
class Object # # Return this object's singleton class. # def singleton_class class << self; self; end end # # Return true if the given object include?-s this object. # def in?(object) object.include?(self) end end class String # # Remove a left margin delimited by '|'-characters. Useful for # heredocs: # def demargin gsub(/^ *\|/, '') end end
Version data entries
28 entries across 28 versions & 1 rubygems