Sha256: f0ebebe8b7814e2f2f069c99d52855831b97d99e016c0b8cef1f78e0717d2897

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

require 'confuse'

config = Confuse.config :path => 'example/example.ini' do |conf|
  conf.add_item :foo, :description => "How many Foo's are there?", :default => 1
  conf.add_item :bar, :description => "list of bars", :type => Array
end

puts config.foo
puts config.bar

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
confuse-1.1.1 example/ini_example.rb