Class: Metanorma::Release::DocumentFile

Inherits:
Struct
  • Object
show all
Defined in:
lib/metanorma/release/document_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/metanorma/release/document_index.rb', line 7

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/metanorma/release/document_index.rb', line 7

def path
  @path
end

Instance Method Details

#extensionObject



8
9
10
# File 'lib/metanorma/release/document_index.rb', line 8

def extension
  File.extname(name).delete_prefix('.')
end