Class: RPV::Swing::SwingSet::Label

Inherits:
Object
  • Object
show all
Includes:
DefaultFont
Defined in:
lib/rpv/swing/swingset.rb

Instance Method Summary collapse

Methods included from DefaultFont

included

Constructor Details

#initialize(text = nil) {|_self| ... } ⇒ Label

Returns a new instance of Label.

Yields:

  • (_self)

Yield Parameters:



139
140
141
142
143
144
# File 'lib/rpv/swing/swingset.rb', line 139

def initialize(text = nil)
  super
  self.text = text.to_s
  self.font = Label.default_font
  yield self if block_given?
end