Class: Spandx::Dotnet::Parsers::Sln

Inherits:
Core::Parser show all
Defined in:
lib/spandx/dotnet/parsers/sln.rb

Constant Summary

Constants inherited from Core::Parser

Core::Parser::UNKNOWN

Instance Method Summary collapse

Methods inherited from Core::Parser

for, parse

Methods included from Core::Registerable

#all, #each, #inherited, #registry

Instance Method Details

#match?(path) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/spandx/dotnet/parsers/sln.rb', line 7

def match?(path)
  path.extname == '.sln'
end

#parse(path) ⇒ Object



11
12
13
14
15
# File 'lib/spandx/dotnet/parsers/sln.rb', line 11

def parse(path)
  project_paths_from(path).map do |project_path|
    ::Spandx::Core::Parser.parse(project_path)
  end.flatten
end