Skip to content

mkdynamic/good_print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Good Print

Not as awesome as awesome_print. Prints objects with simple balanced indentation.

>> require 'good_print'
=> true

>> thing = { one: 1, two: 2, three: { array: [3.1, 3.2], hash: { one: 3.1, two: 3.2 }, string: "hello" }, four: [4.1, 4.2, 4.3] }
=> {:one=>1, :two=>2, :three=>{:array=>[3.1, 3.2], :hash=>{:one=>3.1, :two=>3.2}, :string=>"hello"}, :four=>[4.1, 4.2, 4.3]}

>> gp thing
{
  :one => 1,
  :two => 2,
  :three => {
    :array => [
      3.1,
      3.2
    ],
    :hash => {
      :one => 3.1,
      :two => 3.2
    },
    :string => "hello"
  },
  :four => [
    4.1,
    4.2,
    4.3
  ]
}

About

Not as awesome as awesome_print.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages