Skip to content

Commit 1939ad0

Browse files
committed
Use binding.irb
1 parent b7da5c9 commit 1939ad0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bin/console

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
require "bundler/setup"
66

7-
require "pry"
87
require "dry/validation"
98
require "dry/types"
109

@@ -28,10 +27,10 @@ class Context
2827
def contract(&)
2928
Dry::Validation::Contract.build(&)
3029
end
31-
end
3230

33-
prompt = Pry::Prompt.new(
34-
:dry_validation, "dry-validation", [proc { "dry-validation> " }, proc { "dry-validation*> " }]
35-
)
31+
def console
32+
binding.irb
33+
end
34+
end
3635

37-
Pry.start(Context.new, prompt: prompt)
36+
Context.new.console

0 commit comments

Comments
 (0)