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

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

python 2.7 - Lines in my code being skipped and I am not sure why -

python - multiprocessing pool with map -