Class: UWA::Widget::Hello
- Inherits:
-
Handler
- Object
- Handler
- UWA::Widget::Hello
- Defined in:
- lib/uwa_hello/config.rb,
lib/uwa_hello/widget.rb
Constant Summary collapse
- NAME =
'uwa_hello'
- VERSION =
'1.1'
- COPYRIGHT =
'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
- #hello ⇒ Object
-
#initialize ⇒ Hello
constructor
A new instance of Hello.
Constructor Details
#initialize ⇒ Hello
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
#hello ⇒ Object
14 15 16 |
# File 'lib/uwa_hello/widget.rb', line 14 def hello self << 'Say hello to...' end |