Class: FlutterRb::ProjectParser

Inherits:
Object
  • Object
show all
Defined in:
lib/flutter_rb/project/project.rb

Overview

Flutter plugin project parser

Instance Method Summary collapse

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

#projectObject



34
35
36
# File 'lib/flutter_rb/project/project.rb', line 34

def project
  File.exist?("#{@path}/pubspec.yaml") ? parse_project : nil
end