lib/tmp/config.rb in tmp-1.0.1 vs lib/tmp/config.rb in tmp-1.1.0
- old
+ new
@@ -1,11 +1,10 @@
#encoding: UTF-8
module TMP
module Config
class << self
-
def default_folder_path
File.join( Dir.tmpdir, ( Dir.pwd.split(File::Separator).last.to_s ) )
end
@@config_path= nil
@@ -23,9 +22,13 @@
@@config_path || default_folder_path
end
-
end
end
+
+ def self.folder_path obj
+ self::Config.folder_path(obj)
+ end
+
end