Exception: Xmvc::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xmvc.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.status_code(code = nil) ⇒ Object



38
39
40
41
# File 'lib/xmvc.rb', line 38

def self.status_code(code = nil)
  return @code unless code
  @code = code
end

Instance Method Details

#status_codeObject



43
44
45
# File 'lib/xmvc.rb', line 43

def status_code
  self.class.status_code
end