Sha256: 29b1a420a2084329a8134dc5d560996819461c8ab842ca2968f1b6f794ea3311
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'block_configurable/configuration' require "block_configurable/version" module BlockConfigurable module ClassMethods def configuration @configuration ||= Configuration.new end def configurable(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, :configurable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
block_configurable-0.10.0 | lib/block_configurable.rb |