Class: Passwd::Config

Inherits:
AbstractConfig show all
Includes:
Singleton
Defined in:
lib/passwd/configuration/config.rb

Constant Summary

Constants inherited from AbstractConfig

AbstractConfig::VALID_OPTIONS_KEYS

Instance Method Summary collapse

Methods inherited from AbstractConfig

#configure, #letters, #merge

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
# File 'lib/passwd/configuration/config.rb', line 9

def initialize
  reset
end

Instance Method Details

#resetObject



13
14
15
16
17
18
19
20
21
# File 'lib/passwd/configuration/config.rb', line 13

def reset
  self.length = 8
  self.lower = true
  self.upper = true
  self.number = true
  self.letters_lower = ("a".."z").to_a
  self.letters_upper = ("A".."Z").to_a
  self.letters_number = ("0".."9").to_a
end