Project

press

0.0
No commit activity in last 3 years
No release in over 3 years
Data and exception printer.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Press

A data and exception printer.

Using

require "press"

module Willy
  extend Press
  
  def self.main
    pd(one: "two", three: "four", now: Time.now, pi: 3.14159265)
    pd(spaces: "hello world", hash: {user: "password"}, array: ["cat", "dog"])
    pdfm __FILE__, __method__, hello: "world")

    pd(event: "a block") { 2 + 2 }
    pdfm __FILE__, __method__, event: "another block") { 10 * 10 }

    pde(StandardError.new("something bad happened"), near: "weirdness")
    pdfme(__FILE__, __method__, StandardError.new("worse"), joe: "blow")
  end
end
one=two three=four now=2012-05-21T16:59:21-07:00 pi=3.142
spaces="hello world" hash={.. array=[..
file=silly fn=main hello=world
event="a block" at=start
event="a block" at=finish elapsed=0.000
file=silly fn=main event="another block" at=start
file=silly fn=main event="another block" at=finish elapsed=0.000
at=error class=StandardError message="something bad happened" near=weirdness
file=silly fn=main at=error class=StandardError message=worse joe=blow