Ad
  • Custom User Avatar

    It allows you to pass a method in as a symbol instead of passing in a block to the method itself, which makes it automatically reflexive without any further work. Below would be the longer version of the above example for that part.

    .map do |strings|
      strings.join
    end