lib/inch/code_object/provider/yard/object/namespace_object.rb in inch-0.4.10 vs lib/inch/code_object/provider/yard/object/namespace_object.rb in inch-0.5.0.rc1
- old
+ new
@@ -26,17 +26,20 @@
children.all?(&:namespace?)
end
# called by MethodObject#getter?
def child(name)
- children.find { |child| child.name == name } if children
+ if children
+ children.detect { |child| child.name == name }
+ end
end
def children
object.children.map do |o|
YARD::Object.for(o)
end
end
+
end
end
end
end
end