0.0
No commit activity in last 3 years
No release in over 3 years
This ripl plugin provides a simple way to define blocks which are run after ~/.irbrc is loaded. A more useful version of IRB.conf[:IRB_RC].
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.0
 Project Readme

Description¶ ↑

This ripl plugin provides a simple way to define blocks which are run after ~/.irbrc is loaded. A more useful version of IRB.conf.

Install¶ ↑

Install the gem with:

sudo gem install ripl-after_rc

Usage¶ ↑

Add to your ~/.riplrc

require 'ripl/after_rc'

Anywhere in your ~/.irbrc

Ripl.after_rc do
  # some code to run after ~/.irbrc
end

You can call Ripl.after_rc as many times as you’d like and the blocks will be called later in the order they were defined.

Motivation¶ ↑

So why use this at all? Say you have some Rails helpers to define but Rails doesn’t get loaded until later in the irbrc or after irbrc. Simply pass Ripl.after_rc a block and it will be called later when Rails is available.