From f98c43c3b376c3179821367eb0ff93b5c48edf5d Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Tue, 2 Jul 2024 23:24:46 +0900 Subject: [PATCH] chore(bin): Add `bin/console` for better DX 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__)