Module: Libnet::Helpers
- Included in:
- Header
- Defined in:
- lib/libnet4r/helpers.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#check_integer(v) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/libnet4r/helpers.rb', line 3 def check_integer(v) unless v.is_a? Integer raise TypeError, "value must be an Integer" end nil end |
#check_string(v) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/libnet4r/helpers.rb', line 11 def check_string(v) unless v.is_a? String raise TypeError, "value must be a String" end nil end |