Class: Hekenga::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/hekenga/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#dirObject

Returns the value of attribute dir.



3
4
5
# File 'lib/hekenga/config.rb', line 3

def dir
  @dir
end

#report_sleepObject

Returns the value of attribute report_sleep.



3
4
5
# File 'lib/hekenga/config.rb', line 3

def report_sleep
  @report_sleep
end

#rootObject

Returns the value of attribute root.



3
4
5
# File 'lib/hekenga/config.rb', line 3

def root
  @root
end

Instance Method Details

#abs_dirObject



9
10
11
# File 'lib/hekenga/config.rb', line 9

def abs_dir
  File.join(@root, *[@dir].flatten)
end