module DockDriver::Template::Dzen2::ClassMethods
Methods to add to the including class.
Public Instance Methods
list_icons()
click to toggle source
Returns a list of available icon names, derived from the files available in the datadir of this gem.
# File lib/dock_driver/template/dzen2.rb, line 140 def list_icons pattern = DockDriver::DATADIR + "icons/gray/*.xpm" return Dir.glob( pattern ).map do |icon| icon[/\w+.xpm/].sub(/.xpm/, '') end.sort.uniq end