Sha256: e07070cfaff069c714d192e83ca580984f7505969b4e3d4c138dc327bf4292d0
Contents?: true
Size: 851 Bytes
Versions: 3
Compression:
Stored size: 851 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' # An example application to demonstrate 'Hello World'. # class HelloWorldApp include Vedeu configure do debug! log '/tmp/vedeu_hello_world.log' end interface 'messages' do background '#000000' foreground '#00ff00' geometry do centred! height 3 width 20 end end renders do view 'messages' do lines do centre 'Hello World!', width: 20 line centre "Press 'q' to exit.", width: 20 end end end def self.start(argv = ARGV) Vedeu::Launcher.execute!(argv) end end HelloWorldApp.start(ARGV)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.18 | examples/hello_world.rb |
vedeu-0.4.17 | examples/hello_world.rb |
vedeu-0.4.16 | examples/hello_world.rb |