Sha256: bd76421273984b5a9b6a1df65b9e90848f923065ac4f377a09bd7a93ba21a04c

Contents?: true

Size: 196 Bytes

Versions: 4

Compression:

Stored size: 196 Bytes

Contents

module Rupture
  module Utils
    def self.verify_args(args, *sizes)
      raise ArgumentError, "wrong number of arguments (#{args.size} for 2)" unless sizes.include?(args.size)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rupture-0.3.0 lib/rupture/utils.rb
rupture-0.2.1 lib/rupture/utils.rb
rupture-0.2.0 lib/rupture/utils.rb
rupture-0.1.0 lib/rupture/utils.rb