Class: ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatLine Private
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatLine
- Defined in:
- lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_line.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #line ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #initialize(line:) ⇒ void constructor private
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(line:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_line.rb', line 24 def initialize(line:) @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_line.rb', line 18 def line @line end |
Instance Method Details
#call ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Note:
Exceptions formatting is inspired by RSpec. It has almost the same output (at least for RSpec 3).
37 38 39 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_line.rb', line 37 def call "# #{line}" end |