Class: String
Instance Method Summary collapse
-
#sploin(seperator, joiner, &block) ⇒ Object
Included for the kids.
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 |