Object
# File lib/gpgme.rb, line 1350 def capability caps = Array.new caps << :encrypt if @can_encrypt caps << :sign if @can_sign caps << :certify if @can_certify caps << :authenticate if @can_authenticate caps end
# File lib/gpgme.rb, line 1390 def inspect sprintf("#<#{self.class} %s %4d%c/%s %s trust=%s, capability=%s>", secret? ? 'ssc' : 'sub', length, pubkey_algo_letter, (@fingerprint || @keyid)[-8 .. -1], timestamp.strftime('%Y-%m-%d'), trust.inspect, capability.inspect) end
# File lib/gpgme.rb, line 1386 def pubkey_algo_letter PUBKEY_ALGO_LETTERS[@pubkey_algo] || ?? end
# File lib/gpgme.rb, line 1371 def timestamp Time.at(@timestamp) end
# File lib/gpgme.rb, line 1401 def to_s sprintf("%s %4d%c/%s %s\n", secret? ? 'ssc' : 'sub', length, pubkey_algo_letter, (@fingerprint || @keyid)[-8 .. -1], timestamp.strftime('%Y-%m-%d')) end
Generated with the Darkfish Rdoc Generator 2.