Sha256: 99ee0d2cab485f262abc212d2a380267bcc16a9b93380d6a891bd8c4f31362bf

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

module VER
  class Executor
    class ExEncoding < Entry
      def setup
        callback.update_on_change = true
        @encodings = Encoding.list.map(&:name)
      end

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

      def action(name)
        caller.encoding = Encoding.find(name)
        callback.destroy
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 lib/ver/executor/encoding.rb