/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class String # Reverses a string based on a delimiter def inverse(delim=",") self.split(",").reverse.join(", ") end end