Method: CommandFeedback::Service.build_choices_hash
- Defined in:
- lib/command_feedback/feedback.rb
.build_choices_hash(choices) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/command_feedback/feedback.rb', line 25 def self.build_choices_hash(choices) choices_hash = {} choices.each_with_index { |choice, index| choices_hash["choice_#{index + 1}"] = choice } choices_hash end |