0

If I run code like this, I get - in the __FILE__ var:

cat script.rb | ruby

I can't find that documented anywhere though (docs). Where can I get exact details about it?

mattalxndr
  • 9,143
  • 8
  • 56
  • 87

1 Answers1

1

- is sometimes used to refer to STDIN. This is a unix thing, and not unique to ruby.

Described a little bit here

Community
  • 1
  • 1
Some Guy
  • 1,481
  • 12
  • 26