Class: Theoldreader::Config
- Inherits:
-
Object
- Object
- Theoldreader::Config
- Defined in:
- lib/theoldreader/config.rb
Class Attribute Summary collapse
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Class Attribute Details
.token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/theoldreader/config.rb', line 6 def token @token end |
Class Method Details
.load ⇒ Object
7 8 9 10 11 |
# File 'lib/theoldreader/config.rb', line 7 def load @config ||= YAML::load_file(File.join(File.dirname(File.(__FILE__)), 'theoldreader.yml')) rescue Errno::ENOENT {} end |