Sha256: a0c8549e903f0ad41eef1067a6b9f8360f148303a8a774ae6ba0cc54a6a82be1
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module Haskell module AssertArgType extend Base def self.execute(meth, args, klasses) args.each_with_index do |arg, i| if wrong_type?(arg, klasses[i]) raise ArgumentError, "Wrong type of argument, type of #{arg.inspect} should be #{klasses[i]}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
haskell-0.0.3 | lib/haskell/assert_arg_type.rb |