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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user