lib/nmap/xml/host.rb in ruby-nmap-1.0.2 vs lib/nmap/xml/host.rb in ruby-nmap-1.0.3
- old
+ new
@@ -1,17 +1,19 @@
-require 'nmap/xml/status'
-require 'nmap/xml/address'
-require 'nmap/xml/hostname'
-require 'nmap/xml/os'
-require 'nmap/xml/port'
-require 'nmap/xml/ip_id_sequence'
-require 'nmap/xml/tcp_sequence'
-require 'nmap/xml/tcp_ts_sequence'
-require 'nmap/xml/uptime'
-require 'nmap/xml/traceroute'
-require 'nmap/xml/host_script'
+# frozen_string_literal: true
+require_relative 'status'
+require_relative 'address'
+require_relative 'hostname'
+require_relative 'os'
+require_relative 'port'
+require_relative 'ip_id_sequence'
+require_relative 'tcp_sequence'
+require_relative 'tcp_ts_sequence'
+require_relative 'uptime'
+require_relative 'traceroute'
+require_relative 'host_script'
+
require 'nokogiri'
require 'time'
module Nmap
class XML
@@ -256,10 +258,10 @@
# Parses the Uptime analysis of the host.
#
# @yield [uptime]
# If a block is given, it will be passed the resulting object
#
- # @yieldparam [Uptime]
+ # @yieldparam [Uptime]
# Uptime value.
#
# @return [Uptime]
# The parsed object.
#