{"repo":"janlelis/irbtools","free":true,"listed":false,"github":"https://github.com/janlelis/irbtools","clone":"git clone https://github.com/janlelis/irbtools.git","description":"Improvements for Ruby's IRB console 💎︎","language":"Ruby","stars":925,"topics":["irb","ruby","terminal","developer-tools","ruby-console"],"license":"MIT","category":"dev-tools","readme_excerpt":"Irbtools [![[version]](https://badge.fury.io/rb/irbtools.svg)](https://badge.fury.io/rb/irbtools) [![[ci]](https://github.com/janlelis/irbtools/workflows/Test/badge.svg)](https://github.com/janlelis/irbtools/actions?query=workflow%3ATest) Irbtools 4 for Current IRB The current version of Irbtools requires IRB 1.13+ (which Ruby version bundles which IRB?). Please use Irbtools 3 for earlier versions of IRB. Description Improves Ruby's IRB with: - a default configuration - improved syntax highlighting of result objects - helpful commands for debugging and introspection Examples Call system commands with $ Show lookup chain and method list grouped by visibility Show a method list grouped by ancestors Show source code of a Ruby-based method Show source code of a natively implemented method Find out method signatures (most useful for Ruby-based methods with keyword args) Setup $ gem install irbtools IRB executes code in /.irbrc on start-up. If the file does not exist, yet, just create a new one. Add the following content: require 'irbtools' You also need to add irbtools to your project's Gemfile : gem 'irbtools', require: 'irbtools/binding' Then start IRB (with Irbtools loaded) from the terminal or directly from your code with: binding.irb Optional: If the binding of caller gem is available, you can just call the irb method and it will start a session with the current binding: irb Features General IRB Improvements - Syntax highlighting (wirb / fancy irb) - Loads included libraries ","default_branch":null,"files":null,"tree":[],"storefront":"/r/janlelis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/janlelis/irbtools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}