Class: IronSpect::Parsers::ProjectFileParser
- Inherits:
-
Object
- Object
- IronSpect::Parsers::ProjectFileParser
- Defined in:
- lib/iron-spect/parsers/project_file_parser.rb
Instance Method Summary collapse
-
#initialize(csproj_file_path) ⇒ ProjectFileParser
constructor
A new instance of ProjectFileParser.
- #parse ⇒ Object
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
#parse ⇒ Object
12 13 14 |
# File 'lib/iron-spect/parsers/project_file_parser.rb', line 12 def parse XmlSimple.xml_in(@csproj_file_path) end |