class Passwd::Config
Constants
- VALID_OPTIONS
Public Class Methods
new(options = {})
click to toggle source
# File lib/passwd/config.rb, line 11 def initialize(options = {}) reset merge(options) end
Public Instance Methods
merge(options)
click to toggle source
# File lib/passwd/config.rb, line 16 def merge(options) options.each_key {|key| send("#{key}=", options[key]) } self end
reset()
click to toggle source
# File lib/passwd/config.rb, line 21 def reset @stretching = 12 @length = 10 @characters = [("a".."z"), ("A".."Z"), ("0".."9")].map(&:to_a).flatten end