Class: RPV::Swing::SwingSet::Button

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Button.

Yields:

  • (_self)

Yield Parameters:



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