Skip to content

Instantly share code, notes, and snippets.

@yoshikouki
yoshikouki / center_cal.rb
Last active June 24, 2020 06:11
calコマンドをrubyで実装して、中央寄せ表示するだけのスクリプトです。
# frozen_string_literal: true
require 'optparse'
require 'date'
require 'curses'
# 表示する年月を取得
# 戻り値 { :year, :month }
def get_date
# コマンド引数を Hash で取得