Sha256: e3b3bb8853e79f4de83b7dc29b8e3f5f96038f140b77b0daa79b3798dba41dde

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

module Joybox
  module Actions

    class Place

      def self.defaults
        {
          position: [0, 0]
        }
      end

      def self.in(options = {})
        options = options.nil? ? defaults : defaults.merge!(options)
        CCPlace.actionWithPosition(options[:position])
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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