class Myun2::TwitterShell::Profile::Loader
Public Class Methods
load(path)
click to toggle source
# 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