Class: FlutterRb::ProjectParser
- Inherits:
-
Object
- Object
- FlutterRb::ProjectParser
- Defined in:
- lib/flutter_rb/project/project.rb
Overview
Flutter plugin project parser
Instance Method Summary collapse
-
#initialize(path) ⇒ ProjectParser
constructor
A new instance of ProjectParser.
- #project ⇒ Project
Constructor Details
#initialize(path) ⇒ ProjectParser
Returns a new instance of ProjectParser.
32 33 34 |
# File 'lib/flutter_rb/project/project.rb', line 32 def initialize(path) @path = path end |
Instance Method Details
#project ⇒ Project
37 38 39 |
# File 'lib/flutter_rb/project/project.rb', line 37 def project File.exist?("#{@path}/pubspec.yaml") ? parse_project : nil end |