Class: ActiveSupport::BacktraceCleaner
- Inherits:
-
Object
- Object
- ActiveSupport::BacktraceCleaner
- Defined in:
- lib/singed/backtrace_cleaner_ext.rb
Instance Method Summary collapse
Instance Method Details
#filter_line(line) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/singed/backtrace_cleaner_ext.rb', line 3 def filter_line(line) filtered_line = line @filters.each do |f| filtered_line = f.call(filtered_line) end filtered_line end |
#silence_line?(line) ⇒ Boolean
12 13 14 |
# File 'lib/singed/backtrace_cleaner_ext.rb', line 12 def silence_line?(line) @silencers.any? { |s| s.call(line) } end |