Sha256: e568a073732ba1e0fbd7edb66a5a1fa2bbc4d81ffe9eb45c9df392dcf23a364a
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'block_configurable/configuration' require "block_configurable/version" module BlockConfigurable module ClassMethods def configuration @configuration ||= Configuration.new end def config(param, default = nil) configuration.add_config(param, default) end def configure(&block) yield(configuration) end end def self.included(receiver) receiver.extend ClassMethods receiver.send :private_class_method, :config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
block_configurable-0.9.0 | lib/block_configurable.rb |