Sha256: 4651f4a97fec66a757ea2c3d988490bb684a58b9d624f1fe63fe512d927dca80

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Nmap
  #
  # Represents a hostname.
  #
  # @since 0.7.0
  #
  class Hostname < Struct.new(:type, :name)

    #
    # Converts the hostname to a String.
    #
    # @return [String]
    #   The name of the host.
    #
    def to_s
      self.name.to_s
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-nmap-0.7.0 lib/nmap/hostname.rb