All Projects → janlelis → Wirb

janlelis / Wirb

Licence: mit
Ruby Object Inspection for IRB

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Wirb

Kibi
A text editor in ≤1024 lines of code, written in Rust
Stars: ✭ 522 (+656.52%)
Mutual labels:  terminal, syntax-highlighting
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+44585.51%)
Mutual labels:  terminal, syntax-highlighting
Ruby jard
Just Another Ruby Debugger. Provide a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter places only, reduces manual and mental efforts. You can now focus on real debugging.
Stars: ✭ 669 (+869.57%)
Mutual labels:  terminal, syntax-highlighting
Influx Prompt
An interactive command-line InfluxDB cli with auto completion.
Stars: ✭ 42 (-39.13%)
Mutual labels:  terminal, syntax-highlighting
Rich
Rich is a Python library for rich text and beautiful formatting in the terminal.
Stars: ✭ 31,664 (+45789.86%)
Mutual labels:  terminal, syntax-highlighting
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+11971.01%)
Mutual labels:  terminal, syntax-highlighting
Bytepath
A replayable arcade shooter with a focus on build theorycrafting made using Lua and LÖVE.
Stars: ✭ 1,119 (+1521.74%)
Mutual labels:  terminal
Mocha Chrome
☕️ Run Mocha tests using headless Google Chrome
Stars: ✭ 66 (-4.35%)
Mutual labels:  terminal
Highlightr
iOS & OSX Syntax Highlighter.
Stars: ✭ 1,116 (+1517.39%)
Mutual labels:  syntax-highlighting
Blightmud
A terminal mud client written in Rust
Stars: ✭ 61 (-11.59%)
Mutual labels:  terminal
Reminders Cli
Command-line interface to interact with the Reminders.app
Stars: ✭ 67 (-2.9%)
Mutual labels:  terminal
Viter
A Vim-ish terminal emulator written and expandable in Python.
Stars: ✭ 69 (+0%)
Mutual labels:  terminal
Ginseng
C++ REPL Tool Builder
Stars: ✭ 65 (-5.8%)
Mutual labels:  terminal
Xterm.dart
💻 xterm.dart is a fast and fully-featured terminal emulator for Flutter, with support for mobile and desktop platforms.
Stars: ✭ 63 (-8.7%)
Mutual labels:  terminal
Nyancat
Nyancat in your terminal, rendered through ANSI escape sequences. This is the source for the Debian package `nyancat`.
Stars: ✭ 1,144 (+1557.97%)
Mutual labels:  terminal
Ving
🐸 A ping utility with nice output, with powerful traceroute and port probe.
Stars: ✭ 62 (-10.14%)
Mutual labels:  terminal
Rat
Compose shell commands to build interactive terminal applications
Stars: ✭ 1,158 (+1578.26%)
Mutual labels:  terminal
Rtscli
Python CLI Stocks Ticker + Portfolio Tracker
Stars: ✭ 61 (-11.59%)
Mutual labels:  terminal
Npmf
Fetch quick info of a npm pacakge using terminal
Stars: ✭ 64 (-7.25%)
Mutual labels:  terminal
Progress.c
Progress display lib for c
Stars: ✭ 67 (-2.9%)
Mutual labels:  terminal

WIRB Interactive Ruby version

The WIRB gem syntax highlights Ruby objects. Works best as your default REPL inspector (see usage section below), but does not require IRB.

Supported Rubies: 3.0, 2.7, 2.6, 2.5

Older Rubies, should work: 2.4, 2.3, 2.2, 2.1, 2.0, rubinius

Ancient Rubies (1.9, 1.8): Please use WIRB 1.0

Features

  • Syntax highlighting for inspected Ruby objects
  • No monkey patches anywhere
  • Support for generic objects, especially enumerators, and nested generic objects
  • Supports common standard library objects, like Set
  • Color schemas customizable via YAML

Install

Install the gem with:

$ gem install wirb

Or add it to your Gemfile:

gem 'wirb'

Usage

To start IRB with WIRB activated for one session, do:

$ irb -r wirb --inspect wirb

To activate WIRB permanently, you can add this to the ~/.irbrc file:

require 'wirb'
Wirb.start

Another way would be to use Irbtools, which activate WIRB automatically.

Kernel#wp

WIRB comes with a pretty printing utility (similar to awesome_print):

require 'wirb/wp'
wp some_object

Bundled Schemas

These are the bundled color schemas. You can load one with Wirb.load_schema(:name)

  • :classic (default)
  • :colorless (only uses :bright, :underline and :inverse effect)
  • :ultra (by @venantius, matches the colorscheme from Ultra over in Clojure-land)

Usage with Rails

If you run into problems using WIRB with Rails, try the solution in this issue.

Also See

  • Gem that allows you to configure views for specific objects: hirb
  • WIRB is part of: Irbtools
  • More about terminal colors: Paint

Credits

Copyright (c) 2011-2020 Jan Lelis https://janlelis.com see COPYING for details.

First tokenizer version was based on the wirble gem: Copyright (C) 2006-2009 Paul Duncan [email protected]

All contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].