エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Googleのプログレスバー作ってみた - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Googleのプログレスバー作ってみた - Qiita
#!/usr/bin/env ruby # -*- coding: utf-8 -*- class GoogleProgress def initialize m @max = m @tic =... #!/usr/bin/env ruby # -*- coding: utf-8 -*- class GoogleProgress def initialize m @max = m @tic = 0 end def +@ return if @tic >= @max @tic += 1 draw_progress_bar puts if @tic == @max end def reset @tic = 0 end private Default = "\e[0m" Blue = "\e[34m" Red = "\e[31m" Green = "\e[32m" Yellow = "\e[33m" def google count ooo = "o" * count "#{Blue}G#{Red}o#{Yellow}o#{ooo}#{Blue}g#{Green}l#{Red}e#{Defau