Class: Hekenga::Config
- Inherits:
-
Object
- Object
- Hekenga::Config
- Defined in:
- lib/hekenga/config.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#report_sleep ⇒ Object
Returns the value of attribute report_sleep.
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
- #abs_dir ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 |
# File 'lib/hekenga/config.rb', line 4 def initialize @report_sleep = 10 @root = Dir.pwd @dir = ["db", "hekenga"] end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
3 4 5 |
# File 'lib/hekenga/config.rb', line 3 def dir @dir end |
#report_sleep ⇒ Object
Returns the value of attribute report_sleep.
3 4 5 |
# File 'lib/hekenga/config.rb', line 3 def report_sleep @report_sleep end |
#root ⇒ Object
Returns the value of attribute root.
3 4 5 |
# File 'lib/hekenga/config.rb', line 3 def root @root end |
Instance Method Details
#abs_dir ⇒ Object
9 10 11 |
# File 'lib/hekenga/config.rb', line 9 def abs_dir File.join(@root, *[@dir].flatten) end |