# Ruby, 90

<!-- language: ruby -->

    f=->n{a=["/\\".center(2*n)]
    2.upto(n){a<<a[-1].gsub("\\/","  ").gsub(/ \/|\\ /,"/\\")}
    puts a}

## Explanation

- Input is taken as an argument to a lambda. It is expected to be an `Integer`.
- Use `String#center` to create a `String` `"/\"` with `n - 2` spaces on each side and put it into an `Array` (`a`).
- Add to `a` the last element of `a` with every occurrence of `"\/"` replaced with `"  "` and every occurrence of `" /"` or `" \"` replaced with `"/\"`.
- Use `puts` to print each element in `a` on its own line.