Sha256: 848c945a8be333ceab548ba3f585a3ea539b2b32d12b157ef5e84b2e684e8215
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
module GemConfig module Base def self.included(base) base.extend ClassMethods end module ClassMethods def configure yield configuration end def configuration @configuration ||= Configuration.new(self) end def with_configuration(&block) configuration.rules.instance_eval(&block) end def after_configuration_change(&block) @after_configuration_change = block end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gem_config-0.3.2 | lib/gem_config/base.rb |
gem_config-0.3.1 | lib/gem_config/base.rb |