Sha256: a675361402c07ec44c97bff1f29676cfaa7176c451b950babf2fdd1264474e6a

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 Bytes

Contents

module WhippedCream
  # A switch toggles a pin between on and off states
  class Switch < Control
    attr_reader :name, :pin

    def initialize(name, options = {})
      @name = name
      @pin = options[:pin]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whipped-cream-0.1.0 lib/whipped-cream/switch.rb
whipped-cream-0.0.1 lib/whipped-cream/switch.rb
whipped-cream-0.0.1pre5 lib/whipped-cream/switch.rb
whipped-cream-0.0.1pre4 lib/whipped-cream/switch.rb