What is the ruby equivalent of #define A B in C/C++? -
is there ruby equivalent of c/c++ macro?
#define somethingelse
ruby projects typically have neither pre-processing nor compilation step , usage of pre-processor not common.
you can define constants using capitalized variable names.
however, if need pre-processor can use cpp ruby or other language - not care actual syntax.
Comments
Post a Comment