Sha256: 4ed28370c1afba8f23c706825652b645c3f81aec3a58835fca0a2933cb012a7a
Contents?: true
Size: 110 Bytes
Versions: 4
Compression:
Stored size: 110 Bytes
Contents
class String def indent(level) split("\n").map { |line| ' ' * (level * 2) + line }.join("\n") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
perkins-0.0.5 | lib/core_ext/string/indent.rb |
perkins-0.0.3 | lib/core_ext/string/indent.rb |
perkins-0.0.2 | lib/core_ext/string/indent.rb |
perkins-0.0.1 | lib/core_ext/string/indent.rb |