Sha256: a923e4b44b9668ec721fa7b1d9f790cac541bc43fab04144dbe6b1e6685a7312
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
module VER class Executor class ExBuffer < Entry def setup callback.update_on_change = true @buffers = VER.buffers.map{|buffer| [Marshal.dump(buffer.uri), buffer.uri.to_s] } tree.configure( show: [], columns: %w[name file], displaycolumns: %w[file] ) end def choices(name) subset(name, @buffers) end def action(selected) item = tree.focus_item key, name, = item.options(:values) return unless key uri = Marshal.load(key) Buffer[uri].show callback.destroy(false) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ver-2010.08 | lib/ver/executor/buffer.rb |