Skip to main content
1 of 2

Ruby, 21 bytes

->(b){"*"*b.to_i(2)} 

Try it online!


It goes from binary to a decimal integer, and becomes a factor by which an asterisk string is multiplied.