Class: Mxrb::Compiler::Mda::Inspection

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/compiler/mda.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



12
13
14
# File 'lib/mxrb/compiler/mda.rb', line 12

def entries
  @entries
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



12
13
14
# File 'lib/mxrb/compiler/mda.rb', line 12

def 
  @metadata
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



12
13
14
# File 'lib/mxrb/compiler/mda.rb', line 12

def path
  @path
end

#sha256Object (readonly)

Returns the value of attribute sha256

Returns:

  • (Object)

    the current value of sha256



12
13
14
# File 'lib/mxrb/compiler/mda.rb', line 12

def sha256
  @sha256
end

Instance Method Details

#filesObject



13
# File 'lib/mxrb/compiler/mda.rb', line 13

def files = entries.reject(&:directory)

#rootsObject



14
# File 'lib/mxrb/compiler/mda.rb', line 14

def roots = entries.map { _1.path.split('/').first }.uniq.sort