Sha256: 795777a2c200aa62d9d9f6883972db1299fdd32b7c6d0f4f265b4a07448d75c8
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
# coding: utf-8 module Confuse # A {Namespace} is a container to keep configuration data seperate from the # rest of the config. class Namespace attr_reader :items def initialize(&block) @items = {} block.call(self) if block_given? end def add_item(name, opts = {}) @items[name] = Item.new(name, opts) end def [](key) @items[key] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
confuse-1.0.0 | lib/confuse/namespace.rb |