Skip to content

Commit 8fb126a

Browse files
committed
Use ReplTypeCompletor itself for completion in bin/console
1 parent 6d0a9d1 commit 8fb126a

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source 'https://rubygems.org'
55
# Specify your gem's dependencies in repl_type_completor.gemspec
66
gemspec
77

8+
gem 'irb', '>= 1.10.0'
89
gem 'rake', '~> 13.0'
910
gem 'test-unit'
1011
gem 'test-unit-ruby-core'

bin/console

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
require "bundler/setup"
5-
require "repl_type_completor"
6-
7-
# You can add fixtures and/or initialization code here to make experimenting
8-
# with your gem easier. You can also use a different console, if you like.
9-
10-
# (If you use this, don't forget to add pry to your Gemfile!)
11-
# require "pry"
12-
# Pry.start
4+
require 'bundler/setup'
5+
require 'repl_type_completor'
6+
require 'irb'
137

8+
ENV['IRB_COMPLETOR'] = 'type'
149
ReplTypeCompletor.preload_rbs
15-
require "irb"
1610
IRB.start(__FILE__)

0 commit comments

Comments
 (0)