Class: String

Inherits:
Object show all
Defined in:
lib/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#sploin(seperator, joiner, &block) ⇒ Object

Included for the kids.



4
5
6
7
8
# File 'lib/core_ext/string.rb', line 4

def sploin(seperator, joiner, &block)
  ary = split(seperator)
  ary.map!(&block) if block_given?
  ary.join(joiner)
end