lib/glue/configuration.rb in glue-0.22.0 vs lib/glue/configuration.rb in glue-0.23.0
- old
+ new
@@ -1,11 +1,11 @@
require 'yaml'
-require 'facet/object/constant'
+require 'nano/object/constant'
+require 'mega/synchash'
require 'glue/attribute'
-require 'glue/hash'
require 'glue/flexob'
# A Configuration holds a group of Settings organized by
# Owners.
#--
@@ -18,11 +18,11 @@
# the Settings alias.
#--
# TODO: find a better name.
#++
- @@owners = Glue::SafeHash.new
+ @@owners = SyncHash.new
# A datastructure to store Settings metadata.
class Setting
attr_accessor :owner, :name, :type, :value, :options
@@ -105,10 +105,10 @@
end
alias_method :all, :settings
alias_method :[], :settings
def method_missing(sym)
- if sym.to_s =~ /[A-Z]/ # facet's capitalized? is buggy at the moment.
+ if sym.to_s =~ /[A-Z]/ # nano's capitalized? is buggy at the moment.
Flexob.new(self[constant(sym)])
end
end
end