Sha256: d3b5a88e940bfe26e4df1bc39cb5b2f9a888320d89e35edc50818c24bf4df29d
Contents?: true
Size: 487 Bytes
Versions: 22
Compression:
Stored size: 487 Bytes
Contents
module Insulin # Author:: Sam (mailto:sam@cruft.co) # License:: MIT # This class is a simple wrapper around a YAML config file class Config < Hash # Open the file at 'path'. If no path is provided, go to default def initialize path = nil if not path path = "conf/insulin.yaml" end self.update YAML.load File.open path end # Return a particular section (as a hash) def get_section section return self[section] end end end
Version data entries
22 entries across 22 versions & 1 rubygems