Sha256: efd4d48fac55f975009d785b32754d3a0e5ece5655ac4803151df110664a5bac
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
module Joybox module Actions class Repeat def self.defaults { action: nil, times: 0 } end #TODO: Revisar esto, no estoy completamente seguro que deba de cambiar la implementacion # original (nombre del metodo) def self.forever(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCRepeatForever.actionWithAction(options[:action]) end def self.with(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCRepeat.actionWithAction(options[:action], times:options[:times]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox/actions/repeat.rb |
joybox-0.0.6 | motion/joybox/actions/repeat.rb |