Method: HexaPDF::Layout::TextLayouter::Penalty#initialize
- Defined in:
- lib/hexapdf/layout/text_layouter.rb
#initialize(penalty, width = 0, item: nil) ⇒ Penalty
Creates a new Penalty with the given penality.
174 175 176 177 178 |
# File 'lib/hexapdf/layout/text_layouter.rb', line 174 def initialize(penalty, width = 0, item: nil) @penalty = penalty @width = width @item = item end |