Sha256: 905a3d67b038d0249d69c419aede3680ad061c8d0c72306127d98c7a905f33f6
Contents?: true
Size: 176 Bytes
Versions: 16
Compression:
Stored size: 176 Bytes
Contents
class String 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
16 entries across 16 versions & 1 rubygems