-
Rubyist people, is there any ruby way to declare constant with multiline light processing behind ? Something like SOME_DIR = ENV['SOME_DIR'] SOME_DIR = File.expand_path SOME_DIR if SOME_DIR SOME_DIR = SOME_DIR.freeze warns about constant redefininition, and seems to me
-
defining a static method just for that is too much. What's your opinion ?
aeris22’s Twitter Archive—№ 58,611