Class: FlutterRb::Project

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

Overview

Represents a Flutter project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, pubspec, android_folder, ios_folder) ⇒ Project

Initializes a new instance of Project.



21
22
23
24
25
26
# File 'lib/flutter_rb/project/project.rb', line 21

def initialize(path, pubspec, android_folder, ios_folder)
  @path = path
  @pubspec = pubspec
  @android_folder = android_folder
  @ios_folder = ios_folder
end

Instance Attribute Details

#android_folderAndroidFolder

Accessor for the Android folder of the project.



41
42
43
# File 'lib/flutter_rb/project/project.rb', line 41

def android_folder
  @android_folder
end

#ios_folderIOSFolder

Accessor for the iOS folder of the project.



46
47
48
# File 'lib/flutter_rb/project/project.rb', line 46

def ios_folder
  @ios_folder
end

#pathString

Accessor for the path of the project.



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

def path
  @path
end

#pubspecPubspec

Accessor for the pubspec of the project.



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

def pubspec
  @pubspec
end