Class: ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatClass
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatClass
- Defined in:
- lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
- #call ⇒ String
- #initialize(klass:) ⇒ void constructor
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(klass:) ⇒ void
19 20 21 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb', line 19 def initialize(klass:) @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
13 14 15 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb', line 13 def klass @klass end |
Instance Method Details
#call ⇒ String
Note:
Exceptions formatting is inspired by RSpec. It has almost the same output (at least for RSpec 3).
32 33 34 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb', line 32 def call "#{klass}:" end |