lib/tw/conf.rb in tw-0.3.6 vs lib/tw/conf.rb in tw-0.3.7

- old
+ new

@@ -19,10 +19,14 @@ def self.[]=(key,value) conf[key] = value end def self.conf_file - "#{ENV['HOME']}/.tw.yml" + @@conf_file ||= "#{ENV['HOME']}/.tw.yml" + end + + def self.conf_file=(fpath) + @@conf_file = fpath end def self.conf @@conf ||= ( res = default