lib/safely.rb in safely-0.1.0 vs lib/safely.rb in safely-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ $:.unshift File.expand_path('../', __FILE__) module Safely - VERSION = "0.1.0" + VERSION = "0.2.0" autoload :Config, 'safely/config' autoload :Mixin, 'safely/mixin' autoload :Strategy, 'safely/strategy' @@ -21,16 +21,16 @@ def config @config ||= Safely::Config.new end def load_strategies! - @config.strategies.each { |s| s.load! } + config.strategies.each { |s| s.load! } end def report!( exception ) load_strategies! if @config.nil? - @config.strategies.each { |s| s.report! exception } + config.strategies.each { |s| s.report! exception } end private def config=( config )