Sha256: b409d1d70e1f4e3429875afd2041eb7c43e1f19f678b123ccd2b2aa913b577ef

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

module Joybox
  module Actions

    class Callback

      def self.with(options = {}, &block)
        if options.has_key?(:object)
          CCCallBlockO.actionWithBlock(block, object: options[:object])
        elsif block.arity == 1
          CCCallBlockN.actionWithBlock(block)
        else
          CCCallBlock.actionWithBlock(block)          
        end
      end

    end
  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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