mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
332 B
Ruby
14 lines
332 B
Ruby
![]() |
#: * `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
|