Class: FlutterRb::IOSFolder

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

Overview

iOS representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, pubspec) ⇒ IOSFolder

Returns a new instance of IOSFolder.



6
7
8
9
10
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 6

def initialize(path, pubspec)
  @path = path
  podspec_path = "#{path}/#{pubspec.pubspec_info.name}.podspec"
  @podspec = File.exist?(podspec_path) ? PodspecParser.new(podspec_path).parse : nil
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



12
13
14
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 12

def path
  @path
end

#podspecObject (readonly)

Returns the value of attribute podspec.



12
13
14
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 12

def podspec
  @podspec
end