Class: Passwd::Config
- Inherits:
-
AbstractConfig
- Object
- AbstractConfig
- Passwd::Config
- Includes:
- Singleton
- Defined in:
- lib/passwd/configuration/config.rb
Constant Summary
Constants inherited from AbstractConfig
AbstractConfig::VALID_OPTIONS_KEYS
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #reset ⇒ Object
Methods inherited from AbstractConfig
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 |
# File 'lib/passwd/configuration/config.rb', line 9 def initialize reset end |
Instance Method Details
#reset ⇒ Object
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 |