Class: IronSpect::Parsers::ProjectFileParser

Inherits:
Object
  • Object
show all
Defined in:
lib/iron-spect/parsers/project_file_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(csproj_file_path) ⇒ ProjectFileParser

Returns a new instance of ProjectFileParser.



7
8
9
10
# File 'lib/iron-spect/parsers/project_file_parser.rb', line 7

def initialize(csproj_file_path)
  raise "#{csproj_file_path} doesn't exist." if not File.exist?(csproj_file_path)
  @csproj_file_path = csproj_file_path
end

Instance Method Details

#parseObject



12
13
14
# File 'lib/iron-spect/parsers/project_file_parser.rb', line 12

def parse
  XmlSimple.xml_in(@csproj_file_path)
end