lib/wolverine.rb in wolverine-0.3.3 vs lib/wolverine.rb in wolverine-0.3.4

- old
+ new

@@ -85,20 +85,23 @@ private def self.root_directory @root_directory ||= PathComponent.new(config.script_path, {:cache_to => self}) end + private_class_method :root_directory def self.cached_methods @cached_methods ||= Hash.new end + private_class_method :cached_methods def self.reset_cached_methods metaclass = class << self; self; end cached_methods.each_key { |method| metaclass.send(:undef_method, method) } cached_methods.clear end + private_class_method :reset_cached_methods def root_directory @root_directory ||= PathComponent.new(config.script_path, {:cache_to => self, :config => config, :redis => redis}) end @@ -109,7 +112,6 @@ def reset_cached_methods metaclass = class << self; self; end cached_methods.each_key { |method| metaclass.send(:undef_method, method) } cached_methods.clear end - end