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.
35 36 37 |
# File 'lib/flutter_rb/project/project.rb', line 35 def initialize(path) @path = path end |
Instance Method Details
#project ⇒ Project
40 41 42 |
# File 'lib/flutter_rb/project/project.rb', line 40 def project File.exist?("#{@path}/pubspec.yaml") ? parse_project : nil end |