Class: FlutterRb::ProjectParser
- Inherits:
-
Object
- Object
- FlutterRb::ProjectParser
- Defined in:
- lib/flutter_rb/project/project.rb
Overview
Class to parse and represent a Flutter project.
Instance Method Summary collapse
-
#initialize(path) ⇒ ProjectParser
constructor
Initializes a new instance of ProjectParser.
-
#project ⇒ Project?
Parses the Flutter project at the given path and returns a Project object.
Constructor Details
#initialize(path) ⇒ ProjectParser
Initializes a new instance of ProjectParser.
54 55 56 |
# File 'lib/flutter_rb/project/project.rb', line 54 def initialize(path) @path = path end |
Instance Method Details
#project ⇒ Project?
Parses the Flutter project at the given path and returns a Project object.
61 62 63 |
# File 'lib/flutter_rb/project/project.rb', line 61 def project File.exist?("#{@path}/pubspec.yaml") ? parse_project : nil end |