Class: Swing::Label
- Inherits:
-
Object
- Object
- Swing::Label
- Includes:
- AttrSetter
- Defined in:
- lib/swing/old/label.rb
Instance Method Summary collapse
-
#initialize(text, opts = {}, &block) ⇒ Label
constructor
A new instance of Label.
Methods included from AttrSetter
dim_proc, included, #set_attributes
Constructor Details
#initialize(text, opts = {}, &block) ⇒ Label
Returns a new instance of Label.
9 10 11 12 |
# File 'lib/swing/old/label.rb', line 9 def initialize text, opts = {}, &block set_attributes(opts) { super(text) } opts[:parent].add self if opts[:parent] end |