Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/pgp-word-list.rb

Instance Method Summary collapse

Instance Method Details

#to_pgp_hexObject



22
23
24
# File 'lib/pgp-word-list.rb', line 22

def to_pgp_hex
  self.map{|word| PGPWordList.word_to_hex(word)}
end

#to_pgp_wordsObject



18
19
20
# File 'lib/pgp-word-list.rb', line 18

def to_pgp_words
  self.each_with_index.map{|hex, i| PGPWordList.hex_to_word(hex, i)}
end