4 ms·
For a longer list (though the explanations are briefer), see Zenspider's Ruby QuickRef[1]. It also includes a handy listing of predefined global constants[2] (a
by telemachos 14y ago
For a longer list (though the explanations are briefer), see Zenspider's Ruby QuickRef[1]. It also includes a handy listing of predefined global constants[2] (and a lot more).[3]
[1]: http://zenspider.com/Languages/Ruby/QuickRef.html#pre-defined-variables http://zenspider.com/Languages/Ruby/QuickRef.html#pre-define...
[2]: http://zenspider.com/Languages/Ruby/QuickRef.html#pre-defined-global-constants http://zenspider.com/Languages/Ruby/QuickRef.html#pre-define...
[3]: http://zenspider.com/Languages/Ruby/QuickRef.html http://zenspider.com/Languages/Ruby/QuickRef.html
- dlisboa 14y ago$YOUR_RUBY_PATH/lib/ruby/1.9.1/English.rb has the full list, with pretty decent explanation.
- twelvechairs 14y agoalso here http://stdlib.rubyonrails.org/libdoc/English/rdoc/files/English_rb.html http://stdlib.rubyonrails.org/libdoc/English/rdoc/files/Engl...
- Empact 14y agoYep, if you must use the variables, much much better to use "require 'english'" and these more meaningful names than the cryptic originals.
- zenspider 14y agoI have a TODO in omnifocus to fold those in. It's a shame I didn't do that earlier.
- draegtun 14y agoI 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/English.html | http://perldoc.perl.org/perlvar.html http://perldoc.perl.org/perlvar.html