lib/nmap/xml/tcp_sequence.rb in ruby-nmap-1.0.2 vs lib/nmap/xml/tcp_sequence.rb in ruby-nmap-1.0.3
- old
+ new
@@ -1,7 +1,9 @@
-require 'nmap/xml/sequence'
+# frozen_string_literal: true
+require_relative 'sequence'
+
module Nmap
class XML
#
# Represents a TCP sequence number.
#
@@ -12,10 +14,10 @@
#
# @return [Numeric]
# The difficulty index from nmap
#
# @since 0.5.0
- #
+ #
def index
@index ||= if (index_string = @node['index'])
index_string.to_i
end
end