The file welcome.rb contains:
welcome.rb
welcome_message = \"hi there\"
But in IRB, I can\'t access the variable I just created:
I think the best way is to define a class like this
class Welcome MESSAGE = "hi there" end
then in irb you can call your code like this :
puts Welcome::MESSAGE