Class: ConvenientService::Service::Plugins::CanHaveSteps::Commands::IsStep
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveSteps::Commands::IsStep
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb
Instance Attribute Summary collapse
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #call ⇒ Boolean
- #initialize(step:) ⇒ void constructor
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(step:) ⇒ void
19 20 21 |
# File 'lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb', line 19 def initialize(step:) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
Returns the value of attribute step.
13 14 15 |
# File 'lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb', line 13 def step @step end |
Instance Method Details
#call ⇒ Boolean
26 27 28 |
# File 'lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb', line 26 def call step.class.include?(Entities::Step::Concern) end |