Commit 40ac338c authored by Coraline Ada Ehmke's avatar Coraline Ada Ehmke

Fix failing test

parent 6e5c5612
......@@ -15,9 +15,12 @@ class Snuffle::Element::MethodDefinition
end
def values
return [] unless node.children.objects.any?
args = node.children.objects[1].children.map{|child| child.name}.flatten
args
begin
return [] unless node.children.objects.any?
node.children.objects[1].children.map{|child| child.name}.flatten
rescue
[]
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment