Parent

String

Public Instance Methods

realign_indentation() click to toggle source
   # File lib/templater/core_ext/string.rb, line 3
3:   def realign_indentation
4:     basis = self.index(/\S/) # find the first non-whitespace character
5:     return self.to_lines.map { |s| s[basis..1] }.join
6:   end
to_lines() click to toggle source
    # File lib/templater/core_ext/string.rb, line 9
 9:     def to_lines
10:       lines.to_a
11:     end
to_lines() click to toggle source
    # File lib/templater/core_ext/string.rb, line 13
13:     def to_lines
14:       to_a
15:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.