Class: Rack::LDP::ContentNegotiation

Inherits:
Rack::LinkedData::ContentNegotiation
  • Object
show all
Defined in:
lib/rack/ldp.rb

Overview

Specializes Rack::LinkedData::ContentNegotiation, making the default return type ‘text/turtle’

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ ContentNegotiation

Returns a new instance of ContentNegotiation.



115
116
117
118
# File 'lib/rack/ldp.rb', line 115

def initialize(app, options = {})
  options[:default] ||= 'text/turtle'
  super
end