Class: Rack::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/yard/server/rack_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#version_suppliedObject

Returns the value of attribute version_supplied.



94
95
96
# File 'lib/yard/server/rack_adapter.rb', line 94

def version_supplied
  @version_supplied
end

Instance Method Details

#xhr?Boolean

Returns:

  • (Boolean)


96
# File 'lib/yard/server/rack_adapter.rb', line 96

def xhr?; (env['HTTP_X_REQUESTED_WITH'] || "").casecmp("xmlhttprequest") == 0 end