Indifferent access (symbol, string) for Compass::Frameworks[]
This commit is contained in:
parent
6be55d55e5
commit
f903da3434
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user