Class: Gem::Release::Data

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Methods included from Helper::String

#camelize, #underscore, #wrap

Instance Attribute Details

#gemObject

Returns the value of attribute gem

Returns:

  • (Object)

    the current value of gem



6
7
8
# File 'lib/gem/release/data.rb', line 6

def gem
  @gem
end

#gitObject

Returns the value of attribute git

Returns:

  • (Object)

    the current value of git



6
7
8
# File 'lib/gem/release/data.rb', line 6

def git
  @git
end

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



6
7
8
# File 'lib/gem/release/data.rb', line 6

def opts
  @opts
end

Instance Method Details

#dataObject



14
15
16
# File 'lib/gem/release/data.rb', line 14

def data
  KEYS.map { |key| [key, send(key)] }.to_h
end