Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dlisboa
on Sept 17, 2012
|
parent
|
context
|
favorite
| on:
Cryptic Ruby Global Variables and Their Meanings
$YOUR_RUBY_PATH/lib/ruby/1.9.1/English.rb has the full list, with pretty decent explanation.
twelvechairs
on Sept 17, 2012
|
next
[–]
also here
http://stdlib.rubyonrails.org/libdoc/English/rdoc/files/Engl...
Empact
on Sept 17, 2012
|
parent
|
next
[–]
Yep, if you must use the variables, much much better to use "require 'english'" and these more meaningful names than the cryptic originals.
zenspider
on Sept 17, 2012
|
prev
|
next
[–]
I have a TODO in omnifocus to fold those in. It's a shame I didn't do that earlier.
draegtun
on Sept 17, 2012
|
prev
[–]
I didn't realise Ruby also had this. Here's the Perl corollary:
perldoc English perldoc perlvar
links:
http://perldoc.perl.org/English.html
|
http://perldoc.perl.org/perlvar.html
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: