LoginSignup
2

More than 5 years have passed since last update.

ruremai gem で irb or pry からRubyのリファレンス(るりま)を確認する

Posted at

「るりま」とは?

Rubyの公式日本語リファレンスマニュアルです。

ruremai とは?

ruremai は「るりま」のリファレンスを REPL 上で利用するツールです。

インストール

  • インストール
$ gem install ruremai
  • 設定

常に ruremai を有効にしたい場合は .pryrc.irbrc に以下を追記します。

require 'ruremai'

試行

$ pry
[1] pry(main)> require "ruremai"
=> true
[2] pry(main)> "test".method(:upcase)
=> #<Method: String#upcase>
[3] pry(main)> "test".method(:upcase).rurema!
=> #<Process::Waiter:0x007fb90a9ea8e8 sleep>

上記を実行すると以下のページが開きます。

外部資料

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
2