app/lib/repo_files_examine_detective.rb
# Return first entry iff there's a top-level directory matching name_pattern;
# if not found, returns nil
Return first entry iff there's a top-level directory matching name_pattern;
if not found, returns nil
Return first entry iff there ' s a top - level directory matching name_pattern ; if not found returns nil
def directory_named(name_pattern)
    @top_level.find do |fso|
      fso['type'] == 'dir' && fso['name'].match(name_pattern)
    end
  end
def directory_named ( name_pattern ) @top_level . find do | fso | fso [ 'type' ] == 'dir' && fso [ 'name' ] . match ( name_pattern ) end end
Return first entry iff there's a top-level directory matching name_pattern;
if not found, returns nil
Return first entry iff there ' s a top - level directory matching name_pattern ; if not found returns nil
name_pattern
<not_specific>