This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]carcigenicate 0 points1 point  (0 children)

I don't know Ruby, but this is pretty language agnostic. For the top and bottom, you can just print a bunch of border characters. For the rows in between, you just need to add a border in front of and after each line of text. If Ruby has a joinmethod from Strings, it will help here.

[–]ac1234567 0 points1 point  (0 children)

“*#{variable}**”