Project

simple-ui

0.0
No commit activity in last 3 years
No release in over 3 years
Simple code for simple things in the console
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

simple-ui

A really simple UI helper, supporting

  • logging severities (:debug, :info, :warn, :error, :success)

    Simple::UI.warn "This is a warning"

  • ...with different colors...

    Simple::UI.success "success is green" Simple::UI.error "error is red"

  • ...with inspect'ing arguments after the first

    Simple::UI.warn "Some things", 1, "foo\nline", :bar

    =>

    Some things 1, "foo\nline", :bar

  • ...with support for source names

    url = "http://radiospiel.org" url.warn "Found a new blog post"

    =>

    [http://radiospiel.org] Found a new blog post

Well, nothing too exciting; yet easy enough to throw into your projects:

require "simple/ui"