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 ⇒ Object
Constructor Details
#initialize(path) ⇒ ProjectParser
Returns a new instance of ProjectParser.
30 31 32 |
# File 'lib/flutter_rb/project/project.rb', line 30 def initialize(path) @path = path end |
Instance Method Details
#project ⇒ Object
34 35 36 |
# File 'lib/flutter_rb/project/project.rb', line 34 def project File.exist?("#{@path}/pubspec.yaml") ? parse_project : nil end |