Class: Potty::Mouth::Prompt::Base

Inherits:
View
  • Object
show all
Defined in:
lib/potty/mouth.rb

Overview

Prompts pack tight (no inter-widget spacing) so the view height matches the inline region exactly — otherwise the default spacing pushes fields past the sized region and they render clipped/invisible.

Direct Known Subclasses

Ask, Choose, Confirm

Instance Attribute Summary

Attributes inherited from View

#app, #widgets

Instance Method Summary collapse

Methods inherited from View

#activate, #build_layout, #deactivate, #handle_escape, #handle_key, #initialize, #layout_widgets, #on_activate, #on_deactivate, #render, #tick

Constructor Details

This class inherits a constructor from Potty::View

Instance Method Details

#spacingObject



107
108
109
# File 'lib/potty/mouth.rb', line 107

def spacing
  0
end