Class: Theoldreader::Config

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/theoldreader/config.rb', line 6

def token
  @token
end

Class Method Details

.loadObject



7
8
9
10
11
# File 'lib/theoldreader/config.rb', line 7

def load
  @config ||= YAML::load_file(File.join(File.dirname(File.expand_path(__FILE__)), 'theoldreader.yml'))
rescue Errno::ENOENT
  {}
end