Method: ImportGraph::Parser::Load#parse_file
- Defined in:
- lib/import_graph/parser/load.rb
#parse_file(file_path) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/import_graph/parser/load.rb', line 23 def parse_file(file_path) matches = Set.new @file_trees[file_path].each_node do |node| match = LOAD_PATTERN.match node next if match.nil? matches.add(build_match_object(:load, file_path, match)) unless match.nil? end matches end |