def each_hostname
      return enum_for(__method__) unless block_given?

      @node.xpath("hostnames/hostname[@name]").each do |host|
        yield Hostname.new(host['type'],host['name'])
      end

      return self
    end
def each_hostname
      return enum_for(__method__) unless block_given?

      @node.xpath("hostnames/hostname[@name]").each do |host|
        yield Hostname.new(host['type'],host['name'])
      end

      return self
    end
Parses the hostnames of the host.

 @yield [host]
   Each parsed hostname will be passed to the given block.

 @yieldparam [Hostname] host
   A hostname of the host.

 @return [Host, Enumerator]
   The host.
   If no block was given, an enumerator will be returned.