Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateGotStepPart
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateGotStepPart
- Includes:
- Support::Delegate
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb
Instance Attribute Summary collapse
- #printer ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain private
- #initialize(printer:) ⇒ void constructor private
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
Methods included from Support::Delegate::ClassMethodsForForwardable
Methods inherited from Support::Command
Constructor Details
#initialize(printer:) ⇒ 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.
49 50 51 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb', line 49 def initialize(printer:) @printer = printer end |
Instance Attribute Details
#printer ⇒ 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.
27 28 29 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb', line 27 def printer @printer 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.
58 59 60 61 62 63 64 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb', line 58 def call return "" unless chain.used_step? return "without step" unless result.from_step? return "of step `#{result.step.printable_action}`" unless chain.used_step_index? "of step `#{result.step.printable_action}` with index `#{result.step.index}`" end |
#chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain
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.
41 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb', line 41 delegate :chain, to: :printer |
#result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
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.
34 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb', line 34 delegate :result, to: :printer |