Sha256: 08ceab84f908b3ecbf3a4ff32975f93272ff98ff91763281c8a64c269bc5765e
Contents?: true
Size: 204 Bytes
Versions: 48
Compression:
Stored size: 204 Bytes
Contents
class String def undent a = $1 if match(/\A(\s+)(.*\n)(?:\1.*\n)*\z/) gsub(/^#{a}/,'') end alias :dedent :undent def starts_with?(characters) !!self.match(/^#{characters}/) end end
Version data entries
48 entries across 48 versions & 2 rubygems