Published in: Other
class String # Reverses a string based on a delimiter def inverse(delim=",") self.split(",").reverse.join(", ") end end
You need to login to post a comment.
Object-Oriented Programming in Pascal: A Graphical Approach
Covers all of the essential concepts of objectoriented programming, including object re-use, inheritance, virtual methods, and polymorphisms.
vanne on 08/20/07
Published in: Other
class String # Reverses a string based on a delimiter def inverse(delim=",") self.split(",").reverse.join(", ") end end
You need to login to post a comment.