Jump to content

User:AJFarmar: Difference between revisions

Line 10:
 
==Ruby==
===Recent <code>String#word(Index)</code>:===
I made a little method that allowed me to replace <code>"String".split(" ")[index]</code> with <code>"String".word index</code>.
I know that this is relatively simple, but I still found it kinda neat.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.