How to get the width of terminal window in Ruby

前端 未结 9 1504
你的背包
你的背包 2021-01-30 16:30

Have you ever noticed that if you run rake -T in rails the list of rake descriptions are truncated by the width of the terminal window. So there should be a way to get it in Rub

9条回答
  •  太阳男子
    2021-01-30 17:03

    I'm a bit late but in rake tasks I do the following: Rake.application.terminal_width

提交回复
热议问题