WIRB syntax highlights Ruby objects.
Supported Rubies: 2.4, 2.3, 2.2, 2.1, 2.0, jruby, rubinius.
Legacy Rubies (1.9, 1.8): Use WIRB 1.0
- Syntax highlighting for Ruby objects
- No monkey patches anywhere
- Support for generic objects, especially enumerators, and nested generic objects
- Can be used without IRB
- Supports stdlib objects, like
- Custom color schemas via YAML
Install the gem with:
$ gem install wirb
To start IRB with WIRB activated for one session, do:
$ irb -r wirb --inspect wirb
To activate WIRB permanently, you'll need to add this to the
require 'wirb' .
These are the bundled color schemas. You can load one with
:colorless(only uses :bright, :underline and :inverse effect)
:ultra(matches the colorscheme from Ultra over in Clojure-land)
Usage with Rails
You can use WIRB like awesome_print to highlight any objects using
require 'wirb/wp' wp some_object
- Gem that allows you to configure views for specific objects: hirb
- WIRB is part of: irbtools
- RIPL is an IRB alternative, syntax highlighting plugin (uses wirb by default): ripl-color_result
- More about terminal colors: Paint
- Wirble: WIRB's predecessor
Copyright (c) 2011-2017 Jan Lelis http://janlelis.com see COPYING for details.
Influenced by code from: Copyright (C) 2006-2009 Paul Duncan [email protected]