Return to Snippet

Revision: 3598
at August 20, 2007 20:58 by vanne


Initial Code
class String
  
  # Reverses a string based on a delimiter
  def inverse(delim=",")
    self.split(",").reverse.join(", ")
  end
end

Initial URL

                                

Initial Description

                                

Initial Title
Inverse a string based on a delimiter

Initial Tags
ruby

Initial Language
Other