An open API service indexing awesome lists of open source software.

https://github.com/cldwalker/ripl-irb

A ripl plugin to smooth the transition from irb
https://github.com/cldwalker/ripl-irb

Last synced: about 1 year ago
JSON representation

A ripl plugin to smooth the transition from irb

Awesome Lists containing this project

README

          

== Description
A ripl plugin that smooths the transition from irb by mocking out IRB. Safely captures all IRB calls
and points to ripl equivalents for irb's commands and config options.

== Install
Install the gem with:

sudo gem install ripl-irb

== Usage

From the commandline

$ ripl -rripl/irb

Or add to your ~/.riplrc

require 'ripl/irb'

When your mocked out IRB encounters a ripl equivalent, it prints a message:

# When encountering a IRB.config[:HISTORY_FILE]
Use Ripl.config[:history] instead of IRB.config[:HISTORY_FILE]

When you invoke an irb command, you'll get pointed to a similar ripl command:

>> context
See config() in ripl-commands plugin

To disable printing these messages:

Ripl.config[:irb_verbose] = false

== Credits

* @me for IRB.conf[:LOAD_MODULES] patch