Indifferent access (symbol, string) for Compass::Frameworks[]

This commit is contained in:
Chris Eppstein 2009-01-18 12:25:16 -08:00
parent 6be55d55e5
commit f903da3434

View File

@ -16,7 +16,7 @@ module Compass
ALL << Framework.new(name, *arguments) ALL << Framework.new(name, *arguments)
end end
def [](name) def [](name)
ALL.detect{|f| f.name == name} ALL.detect{|f| f.name.to_s == name.to_s}
end end
module_function :register, :[] module_function :register, :[]
end end