Sha256: ff6041987a9fb435356982f53f071544f15b05a13cd3da3589af0bfe4900e0f8

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

module VER
  class Executor
    class ExTheme < Entry
      def setup
        callback.update_on_change = true
        @themes = VER::Theme.list.map{|fullpath|
          File.basename(fullpath, File.extname(fullpath))
        }
      end

      def choices(name)
        subset(name, @themes)
      end

      def action(name)
        caller.load_theme(name)
        callback.destroy
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ver-2010.08 lib/ver/executor/theme.rb
ver-2010.02 lib/ver/executor/theme.rb