class String
Public Instance Methods
split_with_character(breaker)
click to toggle source
# File lib/split_with_character.rb, line 4 def split_with_character(breaker) string = self.split(breaker) l = [] string.each do |s| y = "#{s}#{breaker}" l[l.length] = y end return l end