Sha256: dc0aad1c7beb853fa2bc447ce74054a999a62c26218f2a89a0991f58e9d663b2

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

require 'configuration/configurable'

# An example of adding configuration options to a class.
class SimpleExample
  configurable

  config_path 'example/001_simple_example.ini'

  define :foo do
    description   "How many Foo's are there?"
    type          :integer
    default       1
  end

end

example = SimpleExample.new
puts example.foo

Version data entries

10 entries across 10 versions & 1 rubygems

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