Sha256: 55f057c56415f89462feb055a73ef4745cbd909a9ed95acc8dd37f829d8909e3
Contents?: true
Size: 368 Bytes
Versions: 7
Compression:
Stored size: 368 Bytes
Contents
require 'whipped-cream/control' module WhippedCream # A Button represents a one-time action, such as momentarily turning on a # pin, or sending a message to an object class Button < Control attr_reader :name, :pin, :block def initialize(name, options = {}) @name = name @pin = options[:pin] @block = options[:block] end end end
Version data entries
7 entries across 7 versions & 1 rubygems