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)

Creates a new Penalty with the given penality.
def initialize(penalty, width = 0, item: nil)
  @penalty = penalty
  @width = width
  @item = item
end

def inspect #:nodoc:

:nodoc:
def inspect #:nodoc:
  "Penalty[#{penalty} #{width} #{@item.inspect}]"
end

def type

Returns :penalty.
def type
  :penalty
end