diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/ruby.rb')
| -rwxr-xr-x | Library/Homebrew/dev-cmd/ruby.rb | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/Library/Homebrew/dev-cmd/ruby.rb b/Library/Homebrew/dev-cmd/ruby.rb new file mode 100755 index 000000000..2df212301 --- /dev/null +++ b/Library/Homebrew/dev-cmd/ruby.rb @@ -0,0 +1,13 @@ +#:  * `ruby` [<ruby options>]: +#:    Run a Ruby instance with Homebrew's libraries loaded. +#:    For example: +#       brew ruby -e "puts :gcc.f.deps" +#       brew ruby script.rb + +module Homebrew +  module_function + +  def ruby +    exec ENV["HOMEBREW_RUBY_PATH"], "-I#{HOMEBREW_LIBRARY_PATH}", "-rglobal", "-rcmd/irb", *ARGV +  end +end | 
