Sha256: ff98a6748d3077a5114816cb85f7e9d99a00d0f22f5990f8653be9e15116c35d
Contents?: true
Size: 328 Bytes
Versions: 10
Compression:
Stored size: 328 Bytes
Contents
require 'configuration/configurable' module ExampleConfig extend Configuration::ConfigMixin extend Configuration::DSL define :conf do default 2 end end class Foo configured_by ExampleConfig default_namespace :foo define :bar do default 1 end end foo = Foo.new puts foo.config[:conf] puts foo.bar
Version data entries
10 entries across 10 versions & 1 rubygems