Sha256: 35cd4aa17100f2be6d6c13aaebdb3b9e90f888d8e9f96aa4e545fb2d5505b3be
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'vedeu' class DSLApp Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) } Vedeu.configure do debug! log '/tmp/vedeu_views_dsl.log' run_once! standalone! end Vedeu.interface :test1_interface do border do title 'Test 1' end geometry do x 4 y 3 xn 34 yn 8 end end Vedeu.interface :test2_interface do border do title 'Test 2' end geometry do x 36 y 3 xn 66 yn 8 end end Vedeu.interface :test3_interface do border do title 'Test 3' end geometry do x 4 y 10 xn 34 yn 15 end end Vedeu.keymap '_global_' do key('q') { Vedeu.exit } end # vedeu/dsl/line.rb:98:in `streams': wrong number of arguments (1 for 0) Vedeu.render do # view(:test1_interface) do # lines do # line do # stream 'view->lines->line->stream' # end # end # end view(:test2_interface) do lines do line do stream do text 'v->ls->line->stream->text 1' # text 'view->lines->line->stream->text 2' # doesn't show end end end end view(:test3_interface) do lines do line do stream do text 'v->ls->line->stream 1->text 1' end # below doesn't render at all stream do text 'v->ls->line->stream 2->text 1' end end end end end def self.start(argv = ARGV) Vedeu::Launcher.execute!(argv) end end # EditorApp DSLApp.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.0 | examples/views/lines_line_stream.rb |