# File lib/pdf/writer.rb, line 1805 1805: def add_info(label, value = 0) 1806: # This will only work if the label is one of the valid ones. Modify 1807: # this so that arrays can be passed as well. If @label is an array 1808: # then assume that it is key => value pairs else assume that they are 1809: # both scalar, anything else will probably error. 1810: if label.kind_of?(Hash) 1811: label.each { |kk, vv| @info.__send__(kk.downcase.intern, vv) } 1812: else 1813: @info.__send__(label.downcase.intern, value) 1814: end 1815: end