Class: Array

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

Instance Method Summary collapse

Instance Method Details

#to_pgp_hexObject



16
17
18
# File 'lib/pgp-word-list.rb', line 16

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

#to_pgp_wordsObject



12
13
14
# File 'lib/pgp-word-list.rb', line 12

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