Sha256: fff2ccbcad5be1c9850567773bd4cff5c4cc4b660f1367d57bca1f6bf496ae6c
Contents?: true
Size: 749 Bytes
Versions: 5
Compression:
Stored size: 749 Bytes
Contents
#!/usr/bin/env ruby lib_dir = File.dirname(__FILE__) + '/../lib' $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir) trap('INT') { exit! } # require 'bundler/setup' # uncomment to remove the need to do `bundle exec`. require 'vedeu' class HelloWorldApp include Vedeu configure do debug! log '/tmp/hello_world_vedeu.log' end event(:_initialize_) { Vedeu.trigger(:_refresh_) } interface 'messages' do background '#000000' centred! foreground '#00ff00' height 3 width 20 end render do view 'messages' do line ' Hello World!' line line " Press 'q' to exit. " end end def self.start Vedeu::Launcher.execute!(ARGV) end end HelloWorldApp.start
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.9 | examples/hello_world.rb |
vedeu-0.2.8 | examples/hello_world.rb |
vedeu-0.2.7 | examples/hello_world.rb |
vedeu-0.2.6 | examples/hello_world.rb |
vedeu-0.2.5 | examples/hello_world.rb |