class HexaPDF::Layout::TextLayouter::Penalty
penalty/item into account), then the penality item must be the last item of the line.
If a penalty contains an item and a break occurs at the penalty (taking the width of the
than or equal to -INFINITY, a break is mandatory.
If the penalty is greater than or equal to INFINITY, a break is forbidden. If it is smaller
Used for layouting. Describes a penalty item, i.e. a point where a break is allowed.
def initialize(penalty, width = 0, item: nil)
def initialize(penalty, width = 0, item: nil) @penalty = penalty @width = width @item = item end
def inspect #:nodoc:
def inspect #:nodoc: "Penalty[#{penalty} #{width} #{@item.inspect}]" end
def type
def type :penalty end