lib/glue/configuration.rb in glue-0.27.0 vs lib/glue/configuration.rb in glue-0.28.0
- old
+ new
@@ -1,9 +1,9 @@
require 'yaml'
-require 'nano/kernel/constant'
-require 'mega/synchash'
+require 'facet/kernel/constant'
+require 'facet/synchash'
require 'glue/attribute'
require 'glue/flexob'
module Glue
@@ -45,10 +45,14 @@
end
def to_s
@value.to_s
end
+
+ def <=>(other)
+ "#{owner}.#{name}" <=> "#{other.owner}.#{other.name}"
+ end
end
class << self
# Inject the configuration parameters to configuration
@@ -107,10 +111,10 @@
end
alias_method :all, :settings
alias_method :[], :settings
def method_missing(sym)
- if sym.to_s =~ /[A-Z]/ # nano's capitalized? is buggy at the moment.
+ if sym.to_s =~ /[A-Z]/ # FIXME: facets's capitalized? is buggy at the moment.
Flexob.new(self[constant(sym)])
end
end
end