Class: Rack::LDP::ContentNegotiation
- Inherits:
-
Rack::LinkedData::ContentNegotiation
- Object
- Rack::LinkedData::ContentNegotiation
- Rack::LDP::ContentNegotiation
- Defined in:
- lib/rack/ldp.rb
Overview
Specializes Rack::LinkedData::ContentNegotiation, making the default return type ‘text/turtle’
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ ContentNegotiation
constructor
A new instance of ContentNegotiation.
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, = {}) [:default] ||= 'text/turtle' super end |