Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/distorted/monkey_business/string.rb
Instance Method Summary collapse
Instance Method Details
#map ⇒ Object
3 4 5 |
# File 'lib/distorted/monkey_business/string.rb', line 3 def map size.times.with_object('') {|i,s| s << yield(self[i])} end |