lib/glue/configuration.rb in glue-0.30.0 vs lib/glue/configuration.rb in glue-0.31.0

- old
+ new

@@ -3,23 +3,19 @@ require 'facet/kernel/constant' require 'facet/synchash' require 'facet/dictionary' require 'facet/string/capitalized' -require 'glue/attribute' -require 'glue/flexob' - module Glue # A Configuration holds a group of Settings organized by # Owners. An owner is a class that represents the system to be # configured. An alias for this class is Settings. # # You can pass strings, constants or symbols as keys for the # classes to be configured. Passing symbols you can configure # classes even before they are defined. -# #-- # TODO: implement with annotations. #++ class Configuration @@ -183,10 +179,9 @@ # FIXME: this does not work as expected. #++ def method_missing(sym) if sym.to_s.capitalized? -# Flexob.new(self[sym]) bdl = SettingCollection.new bdl.owner = sym if hash = self[sym] bdl.update(hash) end