Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Concern

Includes:
ConvenientService::Support::Concern
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb

Instance Method Summary collapse

Instance Method Details

#methodSymbol?

Returns:

  • (Symbol, nil)


18
19
20
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 18

def method
  action if method_step?
end

#method_step?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 25

def method_step?
  action.instance_of?(Symbol)
end

#result_step?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 32

def result_step?
  method_step? && method == :result
end