Bash completion for Ruby commands and methods
Bash completion for Ruby
ruby-completion
$ source $(brew --prefix)/etc/bash_completion.d/ruby-completion
$ ruby -e 'puts "hello".'<TAB>
$ irb<ENTER> then type 'String.'<TAB> to see methods