You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReplTypeCompletor is a type based completor for REPL.
It uses RBS type information, performs static type analytics, uses dynamic runtime information from binding.
Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add repl_type_completor
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install repl_type_completor
Usage
Require the library
require'repl_type_completor'
Load RBS with one of these. It will load core library signatures, ./rbs_collection.yaml and ./sig/**/*.rbs.
ReplTypeCompletor.preload_rbs# Recommended. Preload using threadReplTypeCompletor.load_rbs# Could take a seconds in large projects
After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.