From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-06-02T23:05:05+09:00 Subject: Re: having a class method called only one time ? Une B�vue wrote: > I'd like having a class method called only one time ? > Is it possible ? in the mean time i remembered java where we can do something like : Array HOST_IP = [] # the array let me make the constant "mutable" and where i need host_ip something like : HOST_IP << get_host_ip if HOST_IP.empty? where get_host_ip is a call to : `curl -s http://whatismyip.org`.chomp a more clever way ? also i want to avoid calling curl if i don't nee host ip... -- � Les faiblesses des hommes font la force des femmes. � (Voltaire)