Sha256: aefe8df626750d5c3d644a7257f8fef769aa20e4aa681cfced26b3622e94f68f
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
class Libnet module Helpers # :nodoc: def check_integer(v) unless v.is_a? Integer raise TypeError, "value must be an Integer" end nil end def check_string(v) unless v.is_a? String raise TypeError, "value must be a String" end nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libnet4r-0.1 | lib/libnet4r/helpers.rb |
libnet4r-0.2 | lib/libnet4r/helpers.rb |