I can read any file with Ruby (v1.9.3-p125) but have trouble with the following commands:
IO.read("myself.rb")
File.open("myself.rb","rb")
When doing this on a “*.rb” file, it will return a blank string. If i rename the file “myself.rabit” it works.
How can I get around the apparent filtering of ruby source files?
There is no such filtering, you’re not encountering the bug you think you’re encountering.
For instance, this works just fine as a complete Ruby program stored in a
.rbfile: