Class: Swee::Config::BaseConfig

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

Direct Known Subclasses

AppConfig, DbConfig, ServerConfig

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



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

def [](key)
  send(key)
end

#absolutely_app_path(_file) ⇒ Object



5
6
7
# File 'lib/swee/config.rb', line 5

def absolutely_app_path _file
  _file.start_with?("/") ? _file : File.expand_path(_file,ENV["app_path"])
end