4
5

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.

pecoでrubicureをより便利に使う

Posted at

rubicureとは?

Ruby界の鬼才、キュアエンジニアこと :chestnut: @sue445 さん作のruby gem。
プリキュアのタイトルや名前を出力してくれる非常に実用的なCLIツールです。

sue445/rubicure - GitHub

機能抜粋

こんな素敵機能がついています。

require 'rubicure'

puts Precure.now
# => {:series_name=>"go_princess", :title=>"Go!プリンセスプリキュア", :started_date=>Sun, 01 Feb 2015, :girls=>["cure_flora", "cure_mermaid", "cure_twinkle", "cure_scarlett"]}

print Precure.smile.girls.map(&:human_name), "\n"
# => ["星空みゆき", "日野あかね", "黄瀬やよい", "緑川なお", "青木れいか"]

azatoi = %i(rosetta pine peace)
azatoi.each { |e|print Cure.send(e), "\n" }
# => 四葉ありす
# => 山吹祈里
# => 黄瀬やよい

気になる方はGitHubで詳細をご確認ください。

pecoでプリキュアを検索

$ ruby -rrubicure -e "puts Precure.smile.girls" | peco

peco_rubicure.gif

外部資料

4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?