1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Isn't this intending to check if names.is_a?(Hash)

This commit is contained in:
Akira Matsuda 2013-02-07 06:56:42 +09:00
parent d186cb083f
commit c065f1e4ee

View file

@ -78,7 +78,7 @@ END
end end
def locals_code(names) def locals_code(names)
names = names.keys if Hash == names names = names.keys if Hash === names
names.map do |name| names.map do |name|
# Can't use || because someone might explicitly pass in false with a symbol # Can't use || because someone might explicitly pass in false with a symbol