User:AJFarmar: Difference between revisions

No edit summary
Line 11:
==Ruby==
===Recent code:===
I made a little method that allowed me to replace <code ruby>"String".split(" ")[index]</code> with <code ruby>"String".word index</code>.
I know that this is relatively simple, but I still found it kinda neat.
 
Line 24:
end
</lang>
 
And here's it in action. Note that I also implemented a renamed version; <code>String#w(index)</code>
Anonymous user