https://github.com/dannyben/lp
Lovely Print
https://github.com/dannyben/lp
debugging gem ruby
Last synced: about 1 year ago
JSON representation
Lovely Print
- Host: GitHub
- URL: https://github.com/dannyben/lp
- Owner: DannyBen
- License: mit
- Created: 2018-05-20T18:50:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T17:05:09.000Z (over 2 years ago)
- Last Synced: 2025-04-13T19:03:48.020Z (about 1 year ago)
- Topics: debugging, gem, ruby
- Language: Ruby
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lovely Print
==================================================
[](https://badge.fury.io/rb/lp)
[](https://github.com/DannyBen/lp/actions?query=workflow%3ATest)
---
Colorful YAML dump for debug purposes.
Print a colorful YAML output:
```ruby
lp your_object
```
Print a plain YAML output:
```ruby
lp! your_object
# same as: puts your_object.to_yaml
```
Show the object's methods and instance variables:
```ruby
lp? your_object
# similar to: puts (your_object.methods - Object.methods).to_yaml
```
---
Installation
--------------------------------------------------
$ gem install lp