class Hpdf::LetterDIN5008::InfoBox

Defined in:

hpdf/letter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Create`s a new infromation box. It is a key value like table.


[View source]

Instance Method Detail

def keys : Array(String) #

returns all keys


[View source]
def longest_key #

returns the longest key of all given rows


[View source]
def row(key : String = "", value : String = "") #

adds a row to the info box. To add an empty row keep key and value as empty strings.

  • key the left side of the info box
  • value the right side of the info box

[View source]
def values : Array(String) #

returns all values


[View source]