Sha256: 2dc98ec0fef364adb6f169588dc1e3c500c96e2c6a60a96535e1e2520f4859d5
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
require "forewarn/builds_method_values" require "forewarn/remembers_wrapped_methods" require "forewarn/overrides_methods" module Forewarn class SetsUpWarnings def initialize @builds_method_values = BuildsMethodValues.new @remembers_wrapped_methods = RemembersWrappedMethods.new @overrides_methods = OverridesMethods.new end def set_up! methods = Forewarn.config[:warners].map(&:new).map {|w| @builds_method_values.build(w) }.flatten @overrides_methods.override!(methods) @remembers_wrapped_methods.remember!(methods) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forewarn-0.1.0 | lib/forewarn/sets_up_warnings.rb |