Class: FlutterRb::IOSFolder
- Inherits:
-
Object
- Object
- FlutterRb::IOSFolder
- Defined in:
- lib/flutter_rb/project/specs/ios/ios_folder.rb
Overview
Represents the iOS folder structure and its associated podspec file.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
Returns the path to the iOS folder.
-
#podspec ⇒ Podspec?
readonly
Returns the parsed podspec information.
Instance Method Summary collapse
-
#initialize(path, pubspec) ⇒ IOSFolder
constructor
Initializes a new instance of IOSFolder.
Constructor Details
#initialize(path, pubspec) ⇒ IOSFolder
Initializes a new instance of IOSFolder.
14 15 16 17 18 19 20 |
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 14 def initialize(path, pubspec) @path = path # Construct the path to the podspec file. podspec_path = "#{path}/#{pubspec.pubspec_info.name}.podspec" # If the podspec file exists, parse it; otherwise, set @podspec to nil. @podspec = File.exist?(podspec_path) ? PodspecParser.new(podspec_path).parse : nil end |
Instance Attribute Details
#path ⇒ String (readonly)
Returns the path to the iOS folder.
25 26 27 |
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 25 def path @path end |
#podspec ⇒ Podspec? (readonly)
Returns the parsed podspec information.
30 31 32 |
# File 'lib/flutter_rb/project/specs/ios/ios_folder.rb', line 30 def podspec @podspec end |