Class: RPV::Swing::SwingSet::Button
- Inherits:
-
Object
- Object
- RPV::Swing::SwingSet::Button
- Defined in:
- lib/rpv/swing/swingset.rb
Instance Method Summary collapse
-
#initialize(text = nil) {|_self| ... } ⇒ Button
constructor
A new instance of Button.
Constructor Details
#initialize(text = nil) {|_self| ... } ⇒ Button
Returns a new instance of Button.
102 103 104 105 106 |
# File 'lib/rpv/swing/swingset.rb', line 102 def initialize(text = nil) super() self.text = text unless text.nil? yield self if block_given? end |