From: "Florian Aßmann" Date: 2007-08-31T23:47:33+09:00 Subject: Re: Weird problem with DATA and __END__ Hi Michael, I once met this problem, too - but you know - you can always do for each file you require: module FileA DATA = File.read __FILE__.gsub(/\.rb$/, '.txt') end Just put each const in it's own Namespace/Module and lessen your usage of __END__. I always work in my own Namespaces, but not for each require though... > > OK, that makes a twisted sort of sense, but... I *REALLY* do not like > > this. At all. Not just because it royally screws what I'm working on > > (although I may have a slightly clumsier workaround) but also because it > > means any libraries I require in my code can suck up my __END__ data. I > > would have expected the DATA constant to be localized in some way to the > > language unit it's being used in, not passed around freely like some > > kind of depraved party girl. rofl > > > > And what's the "ruby-bin"? Naah, I mean the executable... Regards Florian