Sha256: b6fd68c812abba888f1da2962958d62468902d309ccf1d1d78fd3a0823865de9

Contents?: true

Size: 386 Bytes

Versions: 49

Compression:

Stored size: 386 Bytes

Contents

# -*- encoding : utf-8 -*-
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)
        return array_args, hash_args
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
infopark_reactor-1.26.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.26.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.25.2 lib/reactor/plans/prepared.rb
infopark_reactor-1.25.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.25.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.24.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.24.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.23.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.23.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.23.0.beta2 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.6 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.5 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.4 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.3 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.2 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.1 lib/reactor/plans/prepared.rb
infopark_reactor-1.22.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.21.0 lib/reactor/plans/prepared.rb
infopark_reactor-1.20.4 lib/reactor/plans/prepared.rb
infopark_reactor-1.20.3 lib/reactor/plans/prepared.rb