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.

Parameters:



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

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.



14
15
16
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 14

def path
  @path
end

#podspecObject (readonly)

Returns the value of attribute podspec.



14
15
16
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 14

def podspec
  @podspec
end