Class: FlutterRb::Pubspec

Inherits:
Object
  • Object
show all
Defined in:
lib/flutter_rb/project/specs/flutter/pubspec.rb

Overview

pubspec.yaml representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, pubspec_info, dev_dependencies, platform_plugins) ⇒ Pubspec

Returns a new instance of Pubspec.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 8

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_dependenciesObject (readonly)

Returns the value of attribute dev_dependencies.



20
21
22
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 20

def dev_dependencies
  @dev_dependencies
end

#pathObject (readonly)

Returns the value of attribute path.



20
21
22
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 20

def path
  @path
end

#platform_pluginsObject (readonly)

Returns the value of attribute platform_plugins.



20
21
22
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 20

def platform_plugins
  @platform_plugins
end

#pubspec_infoObject (readonly)

Returns the value of attribute pubspec_info.



20
21
22
# File 'lib/flutter_rb/project/specs/flutter/pubspec.rb', line 20

def pubspec_info
  @pubspec_info
end