Exception: Exception
- Defined in:
- lib/merb-core/controller/exceptions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.action_name ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/merb-core/controller/exceptions.rb', line 10 def self.action_name if self == Exception return nil unless Object.const_defined?(:Exceptions) && Exceptions.method_defined?(:exception) end name = self.to_s.split('::').last.snake_case Object.const_defined?(:Exceptions) && Exceptions.method_defined?(name) ? name : superclass.action_name end |
.status ⇒ Object
20 21 22 |
# File 'lib/merb-core/controller/exceptions.rb', line 20 def self.status 500 end |
Instance Method Details
#action_name ⇒ Object
2 |
# File 'lib/merb-core/controller/exceptions.rb', line 2 def action_name() self.class.action_name end |
#same?(other) ⇒ Boolean
4 5 6 7 8 |
# File 'lib/merb-core/controller/exceptions.rb', line 4 def same?(other) self.class == other.class && self. == other. && self.backtrace == other.backtrace end |