Class: CampfireBot::AbsenteeCamper::Config::PluginConfig
- Inherits:
-
Object
- Object
- CampfireBot::AbsenteeCamper::Config::PluginConfig
- Includes:
- Singleton
- Defined in:
- lib/campfire_bot/absentee_camper/config.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize ⇒ PluginConfig
constructor
A new instance of PluginConfig.
Constructor Details
#initialize ⇒ PluginConfig
Returns a new instance of PluginConfig.
16 17 18 |
# File 'lib/campfire_bot/absentee_camper/config.rb', line 16 def initialize self.config = YAML::load(ERB.new(File.read("#{BOT_ROOT}/absentee-camper-config.yml")).result)[BOT_ENVIRONMENT] end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
20 21 22 |
# File 'lib/campfire_bot/absentee_camper/config.rb', line 20 def config @config end |