lib/inch/code_object/provider/yard/object/namespace_object.rb in inch-0.4.6 vs lib/inch/code_object/provider/yard/object/namespace_object.rb in inch-0.4.7

- old
+ new

@@ -26,20 +26,17 @@ children.all?(&:namespace?) end # called by MethodObject#getter? def child(name) - if children - children.detect { |child| child.name == name } - end + children.find { |child| child.name == name } if children end def children object.children.map do |o| YARD::Object.for(o) end end - end end end end end