lib/hexapdf/layout/line.rb in hexapdf-0.7.0 vs lib/hexapdf/layout/line.rb in hexapdf-0.8.0

- old
+ new

@@ -173,12 +173,12 @@ attr_accessor :x_offset # An optional vertical offset that should be taken into account when positioning the line. # # For the first line in a paragraph this describes the offset from the top of the box to the - # top of the line. For all other lines it describes the offset from the previous baseline to - # the baseline of this line. + # baseline of the line. For all other lines it describes the offset from the previous baseline + # to the baseline of this line. attr_accessor :y_offset # Creates a new Line object, adding all given items to it. def initialize(items = []) @items = [] @@ -288,10 +288,10 @@ # :call-seq: # line.clear_cache -> line # # Clears all cached values. # - # This method needs to be called if the fragment's items are changed! + # This method needs to be called if the line's items are changed! def clear_cache @x_max = @y_min = @y_max = @text_y_min = @text_y_max = @width = nil self end