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