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 270 270: def to_s(base = 1) 271: 272: pairs = self.to_a 273: content = TOKENS.first + EOL 274: 275: pairs.sort_by{ |k| k.to_s }.reverse.each { |pair| 276: 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: 283: content << "\t" * (base-1) + TOKENS.last 284: 285: print(content) 286: 287: end