Class: FlutterRb::PubspecInfo

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

Overview

Flutter plugin info from pubspec.yaml

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description, version, author, homepage) ⇒ PubspecInfo

Returns a new instance of PubspecInfo.



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 4

def initialize(
  name,
  description,
  version,
  author,
  homepage
)
  @name = name
  @description = description
  @version = version
  @author = author
  @homepage = homepage
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



18
19
20
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 18

def author
  @author
end

#descriptionObject (readonly)

Returns the value of attribute description.



18
19
20
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 18

def description
  @description
end

#homepageObject (readonly)

Returns the value of attribute homepage.



18
19
20
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 18

def homepage
  @homepage
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 18

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



18
19
20
# File 'lib/flutter_rb/project/specs/flutter/pubspec_info.rb', line 18

def version
  @version
end