class
   Term::Prompt::Choices
  
  - Term::Prompt::Choices
 - Reference
 - Object
 
Overview
A class responsible for storing a collection of choices
@api private
Included Modules
- Enumerable(Term::Prompt::Choice)
 
Defined in:
prompt/choices.crConstructors
- 
        .new(choices = [] of String)
        
          
Create Choices collection
 
Class Method Summary
- 
        .[](*choices)
        
          
Convenience for creating choices
 
Instance Method Summary
- 
        #<<(choice)
        
          
Add choice to collection
 - 
        #[](index)
        
          
Access choice by index
 - #[]?(index)
 - 
        #choices : Array(Choice)
        
          
The actual collection choices
 - #each(*args, **options)
 - #each(*args, **options, &)
 - #empty?(*args, **options)
 - #empty?(*args, **options, &)
 - #index(*args, **options)
 - #index(*args, **options, &)
 - 
        #pluck(name)
        
          
Pluck a choice by its name from collection
 - #size(*args, **options)
 - #size(*args, **options, &)
 - #to_a(*args, **options)
 - #to_a(*args, **options, &)
 - #values_at(*args, **options)
 - #values_at(*args, **options, &)