Who declare static variable in ruby ?
thks
–
Ãtalo Matos
Who declare static variable in ruby ?
thks
–
Ãtalo Matos
Italo M. wrote:
Who declare static variable in ruby ?
http://www.google.com/search?q=ruby+static+variable
–
Phlip
Redirecting... ← NOT a blog!!!
Hi –
On Sat, 27 Jan 2007, Italo M. wrote:
Who declare static variable in ruby ?
The words “static” and “Ruby” don’t mix very well Do you mean a
class variable? Or a constant?
David
–
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (Ruby for Rails)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)
Hi –
On Sat, 27 Jan 2007, Italo M. wrote:
Constant …
Constants are defined in a class or module. I don’t know what further
information you need, based on your question, but that’s the most
basic point.
David
–
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (Ruby for Rails)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)
Example in Java :
public class Service {
public static final int EMAIL = 1;
public static final int SMS = 2;
}
2007/1/27, [email protected] [email protected]:
basic point.
–
Ãtalo Matos
On Jan 27, 2007, at 12:26 PM, Italo M. wrote:
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs