Class: Mxrb::Compiler::Mda::Inspection
- Inherits:
-
Data
- Object
- Data
- Mxrb::Compiler::Mda::Inspection
- Defined in:
- lib/mxrb/compiler/mda.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#sha256 ⇒ Object
readonly
Returns the value of attribute sha256.
Instance Method Summary collapse
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries
12 13 14 |
# File 'lib/mxrb/compiler/mda.rb', line 12 def entries @entries end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
12 13 14 |
# File 'lib/mxrb/compiler/mda.rb', line 12 def @metadata end |
#path ⇒ Object (readonly)
Returns the value of attribute path
12 13 14 |
# File 'lib/mxrb/compiler/mda.rb', line 12 def path @path end |
#sha256 ⇒ Object (readonly)
Returns the value of attribute sha256
12 13 14 |
# File 'lib/mxrb/compiler/mda.rb', line 12 def sha256 @sha256 end |
Instance Method Details
#files ⇒ Object
13 |
# File 'lib/mxrb/compiler/mda.rb', line 13 def files = entries.reject(&:directory) |
#roots ⇒ Object
14 |
# File 'lib/mxrb/compiler/mda.rb', line 14 def roots = entries.map { _1.path.split('/').first }.uniq.sort |