Sha256: e4abd0bb7f696d6ce902025490964b17f4e48667ae965db2db1da56b7d4397a0

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

module Oxblood
  module Commands
    # @api private
    module Scan
      # @note Mutates args argument!
      def self.merge_opts!(args, opts)
        if v = opts[:count]
          args.push(:COUNT, v)
        end

        if v = opts[:match]
          args.push(:MATCH, v)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oxblood-0.3.0 lib/oxblood/commands/scan.rb
oxblood-0.2.0 lib/oxblood/commands/scan.rb