Post History
Ruby, 33 bytes ->n{?#*n+(' #'+' '*(n-2)+?#)*~-n} Try it online! Basically the same as moshi's python (developed parallelly).
Answer
#4: Post edited
# [Ruby], 35 bytes- ```
->n{'#'*n+('#'+' '*(n-2)+'#')*~-n}- ```
- [Try it online!](https://tio.run/##KypNqvyfZvtf1y6vWl1ZXStPW0OdS1ldW11BXUsjT9dIUxsoqqlVp5tX@z/P1pSroLSkWCFNTyNP8z8A "Ruby – Try It Online")
- Basically the same as moshi's python (developed parallelly).
- [Ruby]: https://www.ruby-lang.org/
- # [Ruby], 33 bytes
- ```
- ->n{?#*n+('
- #'+' '*(n-2)+?#)*~-n}
- ```
- [Try it online!](https://tio.run/##KypNqvyfZvtf1y6vWl1ZXStPW0OdS1ldW11BXUsjT9dIUxsoqqlVp5tX@z/P1pSroLSkWCFNTyNP8z8A "Ruby – Try It Online")
- Basically the same as moshi's python (developed parallelly).
- [Ruby]: https://www.ruby-lang.org/
#3: Post edited
# ruby, 35 bytes- ```
- ->n{'#'*n+('
- #'+' '*(n-2)+'#')*~-n}
- ```
Basically the same as moshi's python (developed parallelly).
- # [Ruby], 35 bytes
- ```
- ->n{'#'*n+('
- #'+' '*(n-2)+'#')*~-n}
- ```
- [Try it online!](https://tio.run/##KypNqvyfZvtf1y6vWl1ZXStPW0OdS1ldW11BXUsjT9dIUxsoqqlVp5tX@z/P1pSroLSkWCFNTyNP8z8A "Ruby – Try It Online")
- Basically the same as moshi's python (developed parallelly).
- [Ruby]: https://www.ruby-lang.org/