class XKPassword::Store
Constants
- SOURCE
Attributes
data[R]
Public Class Methods
new()
click to toggle source
# File lib/xkpassword/store.rb, line 6 def initialize load_data end
Private Instance Methods
load_data()
click to toggle source
# File lib/xkpassword/store.rb, line 12 def load_data path = "#{ File.dirname(__FILE__) }/data/#{ SOURCE }" @data = IO.readlines(path).map{ |item| item.delete("\n") } end