Class: Fuzz::RofiPicker
- Inherits:
-
Object
- Object
- Fuzz::RofiPicker
- Defined in:
- lib/fuzz/rofi_picker.rb
Instance Method Summary collapse
-
#initialize ⇒ RofiPicker
constructor
A new instance of RofiPicker.
- #pick(keys) ⇒ Object
Constructor Details
#initialize ⇒ RofiPicker
Returns a new instance of RofiPicker.
2 3 4 |
# File 'lib/fuzz/rofi_picker.rb', line 2 def initialize assert_executable_available end |
Instance Method Details
#pick(keys) ⇒ Object
6 7 8 |
# File 'lib/fuzz/rofi_picker.rb', line 6 def pick(keys) `echo "#{ keys.join("\n") }" | #{ command }`.strip end |