Class: FlutterRb::Pubspec
- Inherits:
-
Object
- Object
- FlutterRb::Pubspec
- Defined in:
- lib/flutter_rb/project/specs/flutter/pubspec.rb
Overview
Represents a parsed pubspec.yaml file.
Instance Attribute Summary collapse
-
#dev_dependencies ⇒ Array<DevDependency>
readonly
Returns an array of parsed dev dependencies.
-
#path ⇒ String
readonly
Returns the path to the pubspec.yaml file.
-
#platform_plugins ⇒ Array<PlatformPlugin>
readonly
Returns an array of parsed platform plugins.
-
#pubspec_info ⇒ PubspecInfo
readonly
Returns the parsed information from the pubspec.yaml file.
Instance Method Summary collapse
-
#initialize(path, pubspec_info, dev_dependencies, platform_plugins) ⇒ Pubspec
constructor
Initializes a new instance of Pubspec.
Constructor Details
#initialize(path, pubspec_info, dev_dependencies, platform_plugins) ⇒ Pubspec
Initializes a new instance of Pubspec.
16 17 18 19 20 21 |
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 16 def initialize(path, pubspec_info, dev_dependencies, platform_plugins) @path = path @pubspec_info = pubspec_info @dev_dependencies = dev_dependencies @platform_plugins = platform_plugins end |
Instance Attribute Details
#dev_dependencies ⇒ Array<DevDependency> (readonly)
Returns an array of parsed dev dependencies.
36 37 38 |
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 36 def dev_dependencies @dev_dependencies end |
#path ⇒ String (readonly)
Returns the path to the pubspec.yaml file.
26 27 28 |
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 26 def path @path end |
#platform_plugins ⇒ Array<PlatformPlugin> (readonly)
Returns an array of parsed platform plugins.
41 42 43 |
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 41 def platform_plugins @platform_plugins end |
#pubspec_info ⇒ PubspecInfo (readonly)
Returns the parsed information from the pubspec.yaml file.
31 32 33 |
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 31 def pubspec_info @pubspec_info end |