Sha256: f7e04f22d7136498bfd8e813b8d28c0a991aad88456af3adba014293e203eed1
Contents?: true
Size: 140 Bytes
Versions: 3
Compression:
Stored size: 140 Bytes
Contents
class String def unindent space = self.split("\n")[1].to_s[/^(\s+)/, 1] strip.gsub(/^#{space}/, '') end alias ui unindent end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | lib/ramaze/snippets/string/unindent.rb |
ramaze-0.2.1 | lib/ramaze/snippets/string/unindent.rb |
ramaze-0.3.0 | lib/ramaze/snippets/string/unindent.rb |