Skip to content

Instantly share code, notes, and snippets.

@JosephPecoraro
Created November 24, 2008 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosephPecoraro/28393 to your computer and use it in GitHub Desktop.
Save JosephPecoraro/28393 to your computer and use it in GitHub Desktop.
# DATA is a global that is actually a
# File object containing the data
# after __END__ in the current
# script file. WHOA!
puts DATA.read
__END__
I can put anything I want
after the __END__ symbol
and access it with the
DATA global. Whoa!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment