Sha256: 43f8662c9b8fd15e3cad66bed694269cf400b7cc9b430093392f702fa0e03b88

Contents?: true

Size: 356 Bytes

Versions: 8

Compression:

Stored size: 356 Bytes

Contents

module Reactor
  module Plans
    module Prepared
      def error(message)
        "#{self.class.name}: #{message}"
      end

      def separate_arguments(*args)
        array_args  = args.select { |a| !a.is_a?(Hash) }
        hash_args   = args.select { |a| a.is_a?(Hash) }.reduce({}, &:merge)
        [array_args, hash_args]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
infopark_reactor-1.29.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.29.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.28.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.27.0.rc10 lib/reactor/plans/prepared.rb
infopark_reactor-1.27.0.rc9 lib/reactor/plans/prepared.rb
infopark_reactor-1.27.0.rc8 lib/reactor/plans/prepared.rb
infopark_reactor-1.27.0.rc7 lib/reactor/plans/prepared.rb
infopark_reactor-1.27.0.rc4 lib/reactor/plans/prepared.rb