Class: Rbexy::Component::BacktraceCleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/rbexy/component/backtrace_cleaner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backtrace) ⇒ BacktraceCleaner

Returns a new instance of BacktraceCleaner.



6
7
8
9
# File 'lib/rbexy/component/backtrace_cleaner.rb', line 6

def initialize(backtrace)
  @backtrace = backtrace
  @found_templates = {}
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



4
5
6
# File 'lib/rbexy/component/backtrace_cleaner.rb', line 4

def backtrace
  @backtrace
end

Instance Method Details

#callObject



11
12
13
14
15
# File 'lib/rbexy/component/backtrace_cleaner.rb', line 11

def call
  backtrace
    .reject(&method(:internal_implementation_detail?))
    .map(&method(:strip_rbx_internals_block_mention))
end