Who declare static variable in ruby ?
thks
Who declare static variable in ruby ?
thks
Italo Matos wrote:
Who declare static variable in ruby ?
Hi --
Constant …
thks
Hi --
Example in Java :
public class Service {
public static final int EMAIL = 1;
public static final int SMS = 2;
}
Example in Java :
public class Service {
public static final int EMAIL = 1;
public static final int SMS = 2;
}
module Service
EMAIL = 1
SMS = 2
end
referenced later as:
Service::EMAIL
and
Service::SMS
-Rob
Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com