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" end end Fichier '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 end end Un appel de la méthode Subnet.next donne : 1 prout pourquoi je ne vois pas le 2 ?