Module: Onboardable::InstanceMethods

Defined in:
lib/onboardable.rb

Overview

Instance methods for onboarding navigation, added to classes including Onboardable.

Instance Method Summary collapse

Instance Method Details

#onboarding(current_step_name = nil) ⇒ List::Base

Builds the onboarding list and optionally sets the current step.

Parameters:

  • current_step_name (String, nil) (defaults to: nil)

    The name of the current step, if specified.

Returns:

  • (List::Base)

    The List built from the class’s ListBuilder.



53
54
55
# File 'lib/onboardable.rb', line 53

def onboarding(current_step_name = nil)
  self.class.onboarding(current_step_name)
end