module Rack::OAuth2::Server::Rails::ResponseExt
Public Instance Methods
finish()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/rails/response_ext.rb, line 30 def finish @finished = true super end
header()
click to toggle source
# File lib/rack/oauth2/server/rails/response_ext.rb, line 24 def header ensure_finish do @header end end
json()
click to toggle source
# File lib/rack/oauth2/server/rails/response_ext.rb, line 18 def json ensure_finish do @body end end
location()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/rails/response_ext.rb, line 12 def location ensure_finish do super end end
redirect?()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/rails/response_ext.rb, line 6 def redirect? ensure_finish do super end end
Private Instance Methods
ensure_finish() { || ... }
click to toggle source
# File lib/rack/oauth2/server/rails/response_ext.rb, line 41 def ensure_finish @status, @header, @body = finish unless finished? yield end
finished?()
click to toggle source
# File lib/rack/oauth2/server/rails/response_ext.rb, line 37 def finished? !!@finished end