Class: Metanorma::Release::DocumentFile
- Inherits:
-
Struct
- Object
- Struct
- Metanorma::Release::DocumentFile
- Defined in:
- lib/metanorma/release/document_index.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/metanorma/release/document_index.rb', line 7 def name @name end |
#path ⇒ Object
Returns the value of attribute path
7 8 9 |
# File 'lib/metanorma/release/document_index.rb', line 7 def path @path end |
Instance Method Details
#extension ⇒ Object
8 9 10 |
# File 'lib/metanorma/release/document_index.rb', line 8 def extension File.extname(name).delete_prefix('.') end |