Class: UWA::Widget::Hello

Inherits:
Handler
  • Object
show all
Defined in:
lib/uwa_hello/config.rb,
lib/uwa_hello/widget.rb

Constant Summary collapse

NAME =
'uwa_hello'
VERSION =
'1.1'
'Copyright (C) 2007 Florent Solt'
DESC =
'UWA HelloWorld widget'
AUTHOR =
'Florent Solt'
EMAIL =
'[email protected]'
HOMEPAGE =
'http://gnetvibes.rubyforge.org'
LICENSE =
'BSD'

Instance Method Summary collapse

Constructor Details

#initializeHello

Returns a new instance of Hello.



7
8
9
10
11
12
# File 'lib/uwa_hello/widget.rb', line 7

def initialize
	super
	@author = 'Florent Solt'
	@title = 'HelloWorld'
	@preferences << {:name => :name, :type => :text, :label => 'Name', :defaultValue => 'Me'}
end

Instance Method Details

#helloObject



14
15
16
# File 'lib/uwa_hello/widget.rb', line 14

def hello
	self << 'Say hello to...'
end