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

java - SSE Emitter : Manage timeouts and complete() -

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

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -