Please write a Ruby function that accepts an integer, formats it and prints it to the console so that each digit is surrounded by the following characters:
---
| |
===
The digits should be printed in a horizontal line and joined by a *
. E.g. if the argument provided to the function is 236
, it should print out:
--- --- ---
| 2 |*| 3 |*| 6 |
=== === ===