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)
end
def [](name)
ALL.detect{|f| f.name == name}
ALL.detect{|f| f.name.to_s == name.to_s}
end
module_function :register, :[]
end