Module: OpenException
- Defined in:
- lib/open_exception/rails.rb,
lib/open_exception/growl_support.rb,
lib/open_exception/open_exception.rb
Defined Under Namespace
Modules: ActionControllerExtensions, GrowlSupport
Classes: Configurator, ExceptionOpener
Constant Summary
collapse
- EDITOR_COMMANDS =
{
:emacs => '/usr/bin/emacsclient -n +{line} {file}',
:textmate => '/usr/local/bin/mate -a -d -l {line} {file}',
:macvim => '/usr/local/bin/mvim +{line} {file}'
}
- DEFAULT_OPTIONS =
{
:open_with => :emacs,
:exclusion_filters => [], :backtrace_line_filters => [] }
Class Method Summary
collapse
Class Method Details
20
21
22
|
# File 'lib/open_exception/open_exception.rb', line 20
def configure
yield Configurator.new(options)
end
|
.open(exception, options = { }) ⇒ Object
24
25
26
|
# File 'lib/open_exception/open_exception.rb', line 24
def open(exception, options = { })
ExceptionOpener.new(exception, options).open
end
|
.options ⇒ Object
16
17
18
|
# File 'lib/open_exception/open_exception.rb', line 16
def options
@options ||= DEFAULT_OPTIONS.clone
end
|
.puts(msg) ⇒ Object
28
29
30
|
# File 'lib/open_exception/open_exception.rb', line 28
def puts(msg)
defined?(Rails) ? Rails.logger.info(msg) : super
end
|