Last active
January 11, 2019 14:22
-
-
Save leemour/3c534d13274234705eb1a019d21ad506 to your computer and use it in GitHub Desktop.
Format Ruby hash with left indent and awesome print
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add `gem 'awesome_print` to Gemfile | |
rails c | |
# cl = Scryfaller::Client.new | |
# hash = cl.cards.search(q: "Aberrant Researcher // Perfected Form").body[:data].first | |
ap hash, ruby19_syntax: true, index: false, indent: 2 | |
# Copy and paste output into https://www.cleancss.com/ruby-beautify/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment