module Roda::RodaPlugins::SymbolStatus::ResponseMethods

  1. lib/roda/plugins/symbol_status.rb

Methods

Public Instance

  1. status=

Public Instance methods

status=(code)

Sets the response status code by fixnum or symbol name

[show source]
   # File lib/roda/plugins/symbol_status.rb
23 def status=(code)
24   code = Rack::Utils.status_code(code) if code.is_a?(Symbol)
25   super(code)
26 end