Module: Exceptron

Defined in:
lib/exceptron.rb,
lib/exceptron/helpers.rb,
lib/exceptron/railtie.rb,
lib/exceptron/version.rb,
lib/exceptron/dispatcher.rb,
lib/exceptron/middleware.rb,
lib/exceptron/local_helpers.rb,
lib/exceptron/exceptions_controller.rb,
lib/exceptron/local_exceptions_controller.rb

Defined Under Namespace

Modules: Helpers, LocalHelpers Classes: Dispatcher, ExceptionsController, LocalExceptionsController, Middleware, Presenter, Railtie

Constant Summary collapse

VERSION =
"0.0.2".freeze
@@rescue_templates =
Hash.new('diagnostics')

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.controllerObject

Returns the value of attribute controller.



36
37
38
# File 'lib/exceptron.rb', line 36

def controller
  @controller
end

.local_controllerObject

Returns the value of attribute local_controller.



36
37
38
# File 'lib/exceptron.rb', line 36

def local_controller
  @local_controller
end

Class Method Details

.disable!Object



27
28
29
# File 'lib/exceptron.rb', line 27

def self.disable!
  @@enabled = false
end

.enable!Object



23
24
25
# File 'lib/exceptron.rb', line 23

def self.enable!
  @@enabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/exceptron.rb', line 31

def self.enabled?
  @@enabled
end