-
-
Save jlsuttles/1927689 to your computer and use it in GitHub Desktop.
activity_sequence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTIVITIES = [PersonalValues, PersonActions, SomeOther] | |
def next_activity(klass) | |
ACTIVITIES[ACTIVITIES.index(klass) + 1].to_s.underscore.pluralize + "some shit" | |
end | |
def prev_activity(klass) | |
ACTIVITIES[ACTIVITIES.index(klass) - 1].to_s.underscore.pluralize + "some shit" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment