Project

perception

0.0
No commit activity in last 3 years
No release in over 3 years
Beautiful and readable printouts for console and logs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.1
~> 3.10

Runtime

>= 0.1.34
>= 1.6.15
>= 0.7.4
 Project Readme

Perception: Human perceptible printouts¶ ↑

bklippstein.github.com/perception/frames.html

Welcome to Perception. It’s a intuitive toolkit for simple everyday debugging. Perception offers a powerfull replacement for print, puts and pp and is an alternative to Awesome Print.

You get auto-intended and structured output on your console without any configuration.

Perception also offers temporary printouts (overwritten by the next print), printing two informations in one line without destroying the structure and optionally slows down printing to readable speed, depending on the complexity of the output.

see: Powerfull replacement for print, puts and pp¶ ↑

{include:Object#see} More: {Object#see}

log: use logging without configuration¶ ↑

You can use log instead of see, the formating is the same. The log directory and the logfile are automatically created if necessary.

More: {Object#log log}, {Object#rawlog rawlog}, {Perception::SeeSession#logger seee.logger}

Intelligent round: slash needless digits ¶ ↑

{include:Perception::NumericI#significant} More: {Perception::NumericI#significant significant}

Easily human readable numbers ¶ ↑

{include:Perception::NumericI#inspect_see} More: {Perception::NumericI#inspect_see inspect_see}

Examples and Demos¶ ↑

  • {file:demo/Example_Output_1.rb}

  • {file:demo/Example_Output_2.rb}

  • {file:demo/demo3.rb} (interactive)

More Info¶ ↑

Disclaimer¶ ↑

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.