Class: Junction::Screens::Screen
- Inherits:
-
Object
- Object
- Junction::Screens::Screen
- Defined in:
- lib/junction/screens/screen.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Instance Method Summary collapse
-
#initialize ⇒ Screen
constructor
A new instance of Screen.
- #render ⇒ Object
Constructor Details
#initialize ⇒ Screen
Returns a new instance of Screen.
7 8 9 |
# File 'lib/junction/screens/screen.rb', line 7 def initialize @prompt = TTY::Prompt.new end |
Instance Attribute Details
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
5 6 7 |
# File 'lib/junction/screens/screen.rb', line 5 def prompt @prompt end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/junction/screens/screen.rb', line 11 def render raise NotImplementedError end |