Class: FlutterRb::IOSFolder
- Inherits:
-
Object
- Object
- FlutterRb::IOSFolder
- Defined in:
- lib/flutter_rb/project/specs/ios/ios_folder.rb
Overview
iOS representation
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#podspec ⇒ Object
readonly
Returns the value of attribute podspec.
Instance Method Summary collapse
-
#initialize(path, pubspec) ⇒ IOSFolder
constructor
A new instance of IOSFolder.
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
#path ⇒ Object (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 |
#podspec ⇒ Object (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 |