Sha256: d02dec456b1131fef0ff01fda41a6c10c78c9b36e9b65f91a39d08233e17fb88
Contents?: true
Size: 422 Bytes
Versions: 6
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true class Scarpe class << self def button(text) @button = UI.new_button(text) UI.button_on_clicked(@button) do puts "herpderpin in the dark" yield end # We're appending this to the top level box. (Note, may want to apply to "parent" long term) hbox = $parent_box ? $parent_box : $vbox UI.box_append(hbox, @button, 0) end end end
Version data entries
6 entries across 6 versions & 2 rubygems