Top Level Namespace
Defined Under Namespace
Modules: Rubygems
Instance Method Summary collapse
Instance Method Details
#has_executables?(spec) ⇒ Boolean
26 27 28 |
# File 'lib/rubygems-auto-rehash.rb', line 26 def has_executables?(spec) !spec.executables.empty? end |
#has_rbenv? ⇒ Boolean
30 31 32 |
# File 'lib/rubygems-auto-rehash.rb', line 30 def has_rbenv? ENV['RBENV_ROOT'] || File.exist?(File.("~/.rbenv")) && `which rbenv` end |
#in_zsh? ⇒ Boolean
34 35 36 |
# File 'lib/rubygems-auto-rehash.rb', line 34 def in_zsh? ENV.has_key?('SHELL') && /zsh/i === ENV['SHELL'] end |