Method: Wicked::Pipeline::BaseStep.step_name

Defined in:
lib/wicked/pipeline/base_step.rb

.step_nameString

Returns the step name of the step object

Examples:

Step object without a namespace

FinancialSituationnStep.step_name #=> "financial_situation"

Nested step object

Users::FinancialSituationnStep.step_name #=> "financial_situation"

Returns:

  • (String)


148
149
150
# File 'lib/wicked/pipeline/base_step.rb', line 148

def self.step_name
  @_step_name ||= to_s.gsub(%r{(?:\w+/)*}, "")
end