aeris22’s avataraeris22’s Twitter Archive—№ 58,611

    1. 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
  1. …in reply to @aeris22
    defining a static method just for that is too much. What's your opinion ?