Sha256: 7a7fecd3c78ea713d0097d8a307d8ff1d0e1ad0f20b872323ef17b23fc372d96
Contents?: true
Size: 185 Bytes
Versions: 7
Compression:
Stored size: 185 Bytes
Contents
class String #:nodoc: def realign_indentation basis = self.index(/\S/) # find the first non-whitespace character return self.to_a.map { |s| s[basis..-1] }.join end end
Version data entries
7 entries across 7 versions & 1 rubygems