class String

Public Instance Methods

map() { |self| ... } click to toggle source

stackoverflow.com/a/22586646

# File lib/distorted/monkey_business/string.rb, line 3
def map
  size.times.with_object('') {|i,s| s << yield(self[i])}
end