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

Version Path
whipped-cream-0.1.0 lib/whipped-cream/button.rb
whipped-cream-0.0.1 lib/whipped-cream/button.rb
whipped-cream-0.0.1pre5 lib/whipped-cream/button.rb
whipped-cream-0.0.1pre4 lib/whipped-cream/button.rb
whipped-cream-0.0.1pre3 lib/whipped-cream/button.rb
whipped-cream-0.0.1pre2 lib/whipped-cream/button.rb
whipped-cream-0.0.1pre1 lib/whipped-cream/button.rb