Thomas Wieczorek
7/30/2007 9:05:00 PM
2007/7/30, 12 34 <rubyforum@web.knobby.ws>:
> I want to pass about 10 variables to a "require"d file. My understanding
> is that I need to use global variables. Is this correct?
>
I'd do the same as Alex and put the Config constant in a class(or any
other way to pass the parameters, I am quite new to Ruby and don't
know of something better yet)
>
> PS The example file as a
>
> Config = <<EOS
>
> <bunch of code>
> EOS
>
> I can't find EOS in Ruby on Rails or PickAxe, so maybe I'm missing
> something in how it's used.
>
Check Chapter 5 "Strings" in the Pickaxe, it is called *here document* there.