lib/hexapdf/layout/box.rb in hexapdf-0.6.0 vs lib/hexapdf/layout/box.rb in hexapdf-0.7.0
- old
+ new
@@ -1,12 +1,12 @@
-# -*- encoding: utf-8 -*-
+# -*- encoding: utf-8; frozen_string_literal: true -*-
#
#--
# This file is part of HexaPDF.
#
# HexaPDF - A Versatile PDF Creation and Manipulation Library For Ruby
-# Copyright (C) 2014-2017 Thomas Leitner
+# Copyright (C) 2014-2018 Thomas Leitner
#
# HexaPDF is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License version 3 as
# published by the Free Software Foundation with the addition of the
# following permission added to Section 15 as permitted in Section 7(a):
@@ -67,11 +67,11 @@
# * Style#overlay_callback
# * Style#underlay_callback
attr_reader :style
# :call-seq:
- # Box.new(content_width: 0, content_height: 0, style: Style.new) {|canvas, box| block} -> box
- # Box.new(width: 0, height: 0, style: Style.new) {|canvas, box| block} -> box
+ # Box.new(content_width: 0, content_height: 0, style: Style.new) {|canv, box| block} -> box
+ # Box.new(width: 0, height: 0, style: Style.new) {|canv, box| block} -> box
#
# Creates a new Box object with the given width and height for its content that uses the
# provided block when it is asked to draw itself on a canvas (see #draw).
#
# Alternative to specifying the content width/height, it is also possible to specify the box