From 0482993ced639c6251904ea7baead6d60b6c5c3f Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Sun, 7 Jul 2024 06:27:52 +0900 Subject: [PATCH] chore(bin): Add `bin/console` for better DX (#1132) I wanted to try RDoc methods and noticed there's no `bin` dir. This `bin/console` loads `doc/rdoc/markup_reference` for easy testing and debugging. --- bin/console | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/console diff --git a/bin/console b/bin/console new file mode 100755 index 0000000000..2090c32bd8 --- /dev/null +++ b/bin/console @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +require 'bundler/setup' +require 'rdoc' + +# This is the easy way to prepare various kinds of RDoc objects. +require_relative '../doc/rdoc/markup_reference' + +require 'irb' +IRB.start(__FILE__)