Class: Fuzz::RofiPicker

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzz/rofi_picker.rb

Instance Method Summary collapse

Constructor Details

#initializeRofiPicker

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