Class | Origami::Signature::DigitalSignature |
In: |
sources/parser/signature.rb
|
Parent: | Dictionary |
Class representing a digital signature.
M | = | Origami::Date.now |
# File sources/parser/signature.rb, line 271 271: def to_s(base = 1) 272: 273: pairs = self.to_a 274: content = TOKENS.first + EOL 275: 276: pairs.sort_by{ |k| k.to_s }.reverse.each { |pair| 277: key, value = pair[0].to_o, pair[1].to_o 278: 279: content << "\t" * base + key.to_s + " " + (value.is_a?(Dictionary) ? value.to_s(base+1) : value.to_s) + EOL 280: } 281: 282: content << "\t" * (base-1) + TOKENS.last 283: 284: output(content) 285: end