Class: Architext::Picker
- Inherits:
-
Object
- Object
- Architext::Picker
- Defined in:
- lib/architext/picker.rb
Instance Method Summary collapse
-
#initialize(stdin:, stdout:) ⇒ Picker
constructor
A new instance of Picker.
- #select(paths) ⇒ Object
Constructor Details
#initialize(stdin:, stdout:) ⇒ Picker
Returns a new instance of Picker.
7 8 9 10 |
# File 'lib/architext/picker.rb', line 7 def initialize(stdin:, stdout:) @stdin = stdin @stdout = stdout end |
Instance Method Details
#select(paths) ⇒ Object
12 13 14 |
# File 'lib/architext/picker.rb', line 12 def select(paths) tty_prompt_select(paths) || fallback_select(paths) end |