LoginSignup
0

More than 3 years have passed since last update.

Rubyでおみくじ(今日のラッキーカラー)を実装

Last updated at Posted at 2018-09-06

概要

 POST(Power-On Self-Test)実行時にログ表示するオマケ機能。仕事用のシステムに組み込むため、あまり目立たないようにワンライナーでいきます。

コード本体

 Rubyです。

TodaysLuckyColor.rb
lucky_color = %w{Black White Red Green Blue}.sample

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0