Class: ActiveCabinet::Config
- Inherits:
-
Object
- Object
- ActiveCabinet::Config
- Defined in:
- lib/active_cabinet/config.rb
Overview
Configure the global behavior of ActiveCabinet.
Class Attribute Summary collapse
-
.dir ⇒ String
Returns the base directory for all cabinet files.
Instance Attribute Summary collapse
-
#dir ⇒ String
writeonly
Sets the base directory for all cabinet files (default ‘db’).
Class Attribute Details
.dir ⇒ String
Returns the base directory for all cabinet files.
16 17 18 |
# File 'lib/active_cabinet/config.rb', line 16 def dir @dir ||= 'db' end |
Instance Attribute Details
#dir=(value) ⇒ String (writeonly)
Sets the base directory for all cabinet files (default ‘db’).
9 10 11 |
# File 'lib/active_cabinet/config.rb', line 9 def dir=(value) @dir = value end |