Method: Confrb.access
- Defined in:
- lib/confrb.rb
.access(db) ⇒ Object
Access the given database, prepending ‘.’ to given name. Raises an exception if nonexistent.
23 24 25 26 27 28 29 |
# File 'lib/confrb.rb', line 23 def self.access(db) if Dir.exist? '.' + db Confrb.new db else raise "Directory does not exist!" end end |