Add paths to Ruby 'require'


/ Published in: Bash
Save to your folder(s)

Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:


Copy this code and paste it in your HTML
  1. export RUBYLIB=$RUBYLIB:/home/foo/ruby/mylib

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.