Method: Confrb#initialize
- Defined in:
- lib/confrb.rb
#initialize(db) ⇒ Confrb
Auto-create config storage directory, prepending ‘.’ to given name. Use .new() on this class to run this! Can create subdirs recursively, but only root directory gets ‘.’ prepended
14 15 16 17 18 |
# File 'lib/confrb.rb', line 14 def initialize(db) @db = db dotname = "." + @db FileUtils.mkdir_p(dotname) end |