Giter Site home page Giter Site logo

wirb's Introduction

Wavy Interactive Ruby

Wirb colorizes your inspected Ruby objects. It is based on Wirble, but only provides and improves result highlighting.

Install

Install the gem with:

gem install wirb

Usage

Add to your ~/.irbrc

require 'rubygems' unless defined? Gem
require 'wirb'
Wirb.start

Improvements and fixed Wirble bugs

  • Does not change the inspect value (e.g. ranges with 4 instead of 3 dots)

  • Basic support for regexes

  • Fixes some symbol bugs (e.g. :+, :*, …)

  • Support for generic objects, especially sets and enumerators

  • Comes with tests

  • Can be used without irb

  • Supports 1.8, 1.9, jruby, rbx

Customize

The color schema can be changed with:

Wirb.schema = { :comma => :purple, ... }

Wirb color schemas are (almost) compatible with those from the original Wirble, but there are many extensions. Take a look at wirb/schema.rb or Wirb.schema for a list of available token descriptions. See wirb/colors.rb or Wirb::COLORS for the available colors.

Color schemas wanted! You’ve got a good looking alternative color schema? Please post it on the wiki, it may be bundled with a next version ;)

You can colorize any object with wp (wavy_print):

require 'wirb/wp'
wp some_object
wp some_object, :light_red

Also see

Credits

Copyright © 2011 Jan Lelis <rbjl.net>, see COPYING for details.

Contains code from (and thanks to)

J-_-L

wirb's People

Contributors

connor-t avatar janlelis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.