Class: Rbexy::Component::BacktraceCleaner
- Inherits:
-
Object
- Object
- Rbexy::Component::BacktraceCleaner
- Defined in:
- lib/rbexy/component/backtrace_cleaner.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(backtrace) ⇒ BacktraceCleaner
constructor
A new instance of BacktraceCleaner.
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
#backtrace ⇒ Object (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
#call ⇒ Object
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 |