How to work with the console and github ruby projects

How to work on the console when you have a ruby project you want to try? If you are tweaking the code I believe that gem install … is not the solution.

So, I found a solution here: http://stackoverflow.com/questions/5424905/automatically-load-projects-environment-to-irb

What you can do is 

irb -Iname_of_libfolder -rname_of_rb_file

for example for me that was irb -Ilib -rwp_rpc

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s