Class: VER::View::List::Theme

Inherits:
VER::View::List show all
Defined in:
lib/ver/view/list/theme.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

#themesObject



7
8
9
10
11
# File 'lib/ver/view/list/theme.rb', line 7

def themes
  VER::Theme.list.map do |fullpath|
    File.basename(fullpath, File.extname(fullpath))
  end
end

#updateObject



3
4
5
# File 'lib/ver/view/list/theme.rb', line 3

def update
  list.value = sublist(themes)
end