Class: Zxcvbn::Match

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/zxcvbn/match.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



5
6
7
8
9
10
11
# File 'lib/zxcvbn/match.rb', line 5

def to_hash
  hash = @table.dup
  hash.keys.sort.each do |key|
    hash[key.to_s] = hash.delete(key)
  end
  hash
end