Class | RDoc::Markup::Lines |
In: |
markup/lines.rb
|
Parent: | Object |
A container for all the lines.
# File markup/lines.rb, line 105 105: def each 106: @lines.each do |line| 107: yield line unless line.deleted 108: end 109: end
# File markup/lines.rb, line 119 119: def next 120: begin 121: res = @lines[@nextline] 122: @nextline += 1 if @nextline < @lines.size 123: end while res and res.deleted and @nextline < @lines.size 124: res 125: end
# File markup/lines.rb, line 135 135: def normalize 136: margin = @lines.collect{|l| l.leading_spaces}.min 137: margin = 0 if margin == :INFINITY 138: @lines.each {|line| line.strip_leading(margin) } if margin > 0 139: end