Class: WarningSigns::MessageFormatter::Hash
- Defined in:
- lib/warning_signs/message_formatter/hash.rb
Instance Attribute Summary
Attributes inherited from Base
#backtrace_lines, #behaviors, #environments, #filter_backtraces
Instance Method Summary collapse
Methods inherited from Base
#filtered_backtrace, #filtered_backtrace_lines, for, #initialize
Methods included from CallerHelper
#caller_filtered, #ignore_line
Constructor Details
This class inherits a constructor from WarningSigns::MessageFormatter::Base
Instance Method Details
#format_message(message, backtrace) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/warning_signs/message_formatter/hash.rb', line 4 def (, backtrace) { message: , backtrace: filtered_backtrace_lines(backtrace).map(&:to_s) } end |