Class: Myun2::TwitterShell::Profile::Loader
- Inherits:
-
Object
- Object
- Myun2::TwitterShell::Profile::Loader
- Defined in:
- lib/myun2/twitter_shell/profile.rb
Class Method Summary collapse
Class Method Details
.load(path) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/myun2/twitter_shell/profile.rb', line 7 def self.load(path) return unless File.exist?(path) r = {} open(path).each do |line| key, value = line.chomp.split "=" r[key.to_sym] = value end r end |