Sha256: 1e01c4d1771cfbd2204181466b4281e6847d0a82c0202f2c6d22565276ebfd41
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
require 'logger' module Shutl::Resource class << self attr_writer :raise_exceptions_on_validation def raise_exceptions_on_validation if @raise_exceptions_on_validation.nil? @raise_exceptions_on_validation = true end @raise_exceptions_on_validation end end def configure(*args, &block) Configuration.configure(*args, &block) end module Configuration class << self def logger @logger ||= Logger.new($stdout) end def configure yield self end def logger=(logger) @logger = logger end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shutl_resource-0.8.0 | lib/shutl/resource/configuration.rb |