1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RubotyAdvent Calendar 2014

Day 4

Ruboty | 西暦年から十二支を出力する ruboty-eto を作成しました #ruboty

Posted at

Ruboty | 西暦年から十二支を出力する ruboty-eto を作成しました #ruboty

概要

西暦年から十二支を出力する ruboty-eto を作成しました

用途

西暦年から十二支を知りたい時に利用します。

Installation

Add this line to your application's Gemfile:

gem 'ruboty-eto'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruboty-eto

Commands

Command Pattern Description
names /eto names\z/ get eto names
name /eto name (?<year>\d{4})\z/ get eto name from year
emoji /eto emoji (?<year>\d{4})\z/ get eto emoji from year

Usage

names

  • get eto names
>ruboty eto names
>子丑寅卯辰巳午未申酉戌亥

name

  • get eto name from year
>ruboty eto name 1977
>巳

emoji

  • get eto emoji from year
>ruboty eto emoji 1977
>:snake:

ENV

Name Description
-- --

Dependency

Name Description
eto gem eto gem

参照

1
1
0

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?