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

Version Path
confuse-0.1.8 example/004_configured_by.rb
confuse-0.1.7 example/004_configured_by.rb
confuse-0.1.6 example/004_configured_by.rb
confuse-0.1.5 example/004_configured_by.rb
confuse-0.1.4 example/004_configured_by.rb
confuse-0.1.3 example/004_configured_by.rb
confuse-0.1.2 example/004_configured_by.rb
confuse-0.1.1 example/004_configured_by.rb
confuse-0.1.0 example/004_configured_by.rb
confuse-0.0.1 example/004_configured_by.rb