All pastes #109684 Raw Edit

Something

public ruby v1 · immutable
·published 2006-08-01 07:52 UTC
rendered paste body
Fichier 'NorthStar/Subnet.rb'require 'NorthStar/Tools'class Subnet      def next(subnet)      [..]         # Convert the IP in integer         puts "1"         ip_i = Tools.ip_to_int(ip)         puts "2"      endendFichier 'NorthStar/Tools'class Tools[..]   def self.ip_to_int(address)      puts "prout"      buffer = address.split('.')      return buffer[0].to_i * 256 * 256 * 256 + buffer[1].to_i * 256 * 256 + buffer[2].to_i * 256 + buffer[3].to_i   endendUn appel de la méthode Subnet.next donne :1proutpourquoi je ne vois pas le 2 ?