Method: RDF::Format.file_extension

Defined in:
lib/rdf/format.rb

.file_extensionArray<String>

Retrieves file extensions for this RDF serialization format.

The return is an array where the first element is the cannonical file extension for the format and following elements are alias file extensions.

Returns:

  • (Array<String>)


550
551
552
# File 'lib/rdf/format.rb', line 550

def self.file_extension
  @@file_extensions.map {|ext, formats| ext if formats.include?(self)}.compact
end