Class: VER::View::List::Buffer

Inherits:
VER::View::List show all
Defined in:
lib/ver/view/list/buffer.rb

Instance Attribute Summary

Attributes inherited from VER::View::List

#callback, #entry, #frame, #list, #parent, #tag

Instance Method Summary collapse

Methods inherited from VER::View::List

#cancel, #completion, #destroy, #initialize, #line_down, #line_up, #message, #on_update, #pick, #pick_action, #pick_first, #pick_selection, #quit, #select_index, #setup_events, #setup_keymap, #setup_widgets, #sublist

Constructor Details

This class inherits a constructor from VER::View::List

Instance Method Details

#buffersObject



23
24
25
# File 'lib/ver/view/list/buffer.rb', line 23

def buffers
  VER.paths.map(&:to_s).select {|b| ! b.empty? }
end

#updateObject



19
20
21
# File 'lib/ver/view/list/buffer.rb', line 19

def update
  list.value = sublist(buffers)
end