class PdfTempura::Document::BoxedCharacters::CharacterGroup
Attributes
characters[R]
Public Class Methods
new(characters)
click to toggle source
# File lib/pdf_tempura/document/boxed_characters/groups.rb, line 9 def initialize(characters) @characters = characters validate! end
Public Instance Methods
each_supported_character() { || ... }
click to toggle source
# File lib/pdf_tempura/document/boxed_characters/groups.rb, line 18 def each_supported_character(&block) characters.times{ yield } end
spacing()
click to toggle source
# File lib/pdf_tempura/document/boxed_characters/groups.rb, line 14 def spacing 0 end
width(box_width, spacing)
click to toggle source
# File lib/pdf_tempura/document/boxed_characters/groups.rb, line 22 def width(box_width, spacing) box_width * characters + spacing * (characters - 1) end