mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

These are imported from Homebrew/homebrew-dev-tools and are both used by maintainers so may be useful for contributors too.
14 lines
332 B
Ruby
Executable File
14 lines
332 B
Ruby
Executable File
#: * `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
|