String to Rectangular Frame

Ruby

Given a sentence, make a rectangular dynamic frame of asterisks around the output of all the words on separate lines.

Create a method called make_rectangle that accepts a sentence.

make_rectangle("Hello World in a frame")

# =>  *********
#     * Hello *
#     * World *
#     * in    *
#     * a     *
#     * frame *
#     *********

# No test available for this challenge
def make_rectangle sentence end
< >