Module: Rack::LinkedData

Defined in:
lib/rack/linkeddata.rb,
lib/rack/linkeddata/conneg.rb,
lib/rack/linkeddata/version.rb

Defined Under Namespace

Modules: VERSION Classes: ContentNegotiation

Class Method Summary collapse

Class Method Details

.register_mime_types!(overwrite: false, **options)

This method returns an undefined value.

Registers all known RDF formats with Rack’s MIME types registry.

Parameters:

  • overwrite (Boolean) (defaults to: false)

    (false)

  • options (Hash{Symbol => Object})


15
16
17
# File 'lib/rack/linkeddata.rb', line 15

def self.register_mime_types!(overwrite: false, **options)
  Rack::RDF.register_mime_types!(overwrite: overwrite, **options)
end