# File lib/pdf/writer.rb, line 1868 1868: def add_info(label, value = 0) 1869: # This will only work if the label is one of the valid ones. Modify 1870: # this so that arrays can be passed as well. If @label is an array 1871: # then assume that it is key => value pairs else assume that they are 1872: # both scalar, anything else will probably error. 1873: if label.kind_of?(Hash) 1874: label.each { |kk, vv| @info.__send__(kk.downcase.intern, vv) } 1875: else 1876: @info.__send__(label.downcase.intern, value) 1877: end 1878: end