class
   Term::Prompt::Question
  
  - Term::Prompt::Question
 - Reference
 - Object
 
Overview
A class responsible for gathering user input
Included Modules
Direct Known Subclasses
- Term::Prompt::ConfirmQuestion
 - Term::Prompt::Keypress
 - Term::Prompt::MaskQuestion
 - Term::Prompt::Multiline
 
Defined in:
prompt/question.crprompt/question/validators.cr
Constructors
Instance Method Summary
- 
        #call(message : Nil | String = "", &block : self -> )
        
          
Call the question.
 - 
        #call(message = "")
        
          
ditto
 - #convert_result(value)
 - #default : String?
 - #default?
 - #echo : Bool
 - #echo=(echo : Bool)
 - #echo? : Bool
 - #errors : Array(String)
 - 
        #inspect
        
          
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
 - #palette : Palette
 - #palette=(palette : Palette)
 - #prefix : String
 - #prefix=(prefix : String)
 - 
        #process_input(question)
        
          
Decide how to handle input from user
 - #question : String | Nil
 - #read_input(question)
 - 
        #refresh(lines, lines_to_clear)
        
          
Determine area of the screen to clear
 - 
        #render
        
          
Read answer and convert to type
 - #render_error(errors)
 - #render_warning(warnings)
 - #to_s(io)
 - #validators : Array(Validator | ValidatorProc)
 - #value : String | Nil
 - #warnings : Array(String)
 
Constructor Detail
Instance Method Detail
        
        def inspect
        #
      
      
        
              Description copied from class Object
            
          
          Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.