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.

Parameters:

  • path (String)


32
33
34
# File 'lib/flutter_rb/project/project.rb', line 32

def initialize(path)
  @path = path
end

Instance Method Details

#projectProject

Returns:



37
38
39
# File 'lib/flutter_rb/project/project.rb', line 37

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