class ColorButton
Attributes
selected_color[RW]
Public Class Methods
new()
click to toggle source
# File examples/color_button.rb, line 8 def initialize @selected_color = :blue end
Public Instance Methods
launch()
click to toggle source
# File examples/color_button.rb, line 12 def launch window('color button', 240) { color_button { color <=> [self, :selected_color, after_write: ->(color) {p color}] } }.show end