Module: MetadataHandler

Included in:
Describe
Defined in:
lib/get/subcommand/describe/metadata.rb

Overview

Module with methods to handle tag metadata.

To add a new metadata type, create a new method and link it to a symbol.

Instance Method Summary collapse

Instance Method Details

#compute_metadata(metadata_specs) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/get/subcommand/describe/metadata.rb', line 26

def ()
   = .split(',')
  unless .all? { |element| .include?(element.to_sym) }
    Common.error('Some of the metadata requested are not supported')
  end
  .map { |element| [element.to_sym].call }.join('-')
end