Method: NMap::Util#string_of
- Defined in:
- lib/nmap.rb
#string_of(obj) ⇒ Object
20 21 22 23 24 |
# File 'lib/nmap.rb', line 20 def string_of obj obj.to_str rescue raise ArgumentError, "cannot convert <#{ obj.inspect }> to string" end |