Class: Gem::Release::Data
- Inherits:
-
Struct
- Object
- Struct
- Gem::Release::Data
- Includes:
- Helper::String
- Defined in:
- lib/gem/release/data.rb
Constant Summary collapse
- KEYS =
%i[ gem_name gem_path module_names author email homepage licenses summary description files bin_files ].freeze
Instance Attribute Summary collapse
-
#gem ⇒ Object
Returns the value of attribute gem.
-
#git ⇒ Object
Returns the value of attribute git.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
Methods included from Helper::String
Instance Attribute Details
#gem ⇒ Object
Returns the value of attribute gem
6 7 8 |
# File 'lib/gem/release/data.rb', line 6 def gem @gem end |
#git ⇒ Object
Returns the value of attribute git
6 7 8 |
# File 'lib/gem/release/data.rb', line 6 def git @git end |
#opts ⇒ Object
Returns the value of attribute opts
6 7 8 |
# File 'lib/gem/release/data.rb', line 6 def opts @opts end |
Instance Method Details
#data ⇒ Object
14 15 16 |
# File 'lib/gem/release/data.rb', line 14 def data KEYS.map { |key| [key, send(key)] }.to_h end |