Sha256: 748c1b9f73a66f2cbfcc74a5cbe91cdfad3c29b51dbdabe0a452c4dbe18bf35e

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

module Joybox
  module Actions

    class Blink

      def self.defaults
        {
          duration: 0.3,
          times: 0
        }
      end

      def self.with(options = {})
        options = options.nil? ? defaults : defaults.merge!(options)
        CCBlink.actionWithDuration(options[:duration], blinks: options[:times])
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox/actions/blink.rb
joybox-1.1.0 motion/joybox/actions/blink.rb