diff --git a/README.md b/README.md index 71609325..1f42760c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ ap object, options = {} Default options: ```ruby -indent: 4, # Number of spaces for indenting. +indent: 4, # Abs value is number of spaces for indenting. Negative makes it left aligned versus centered. index: true, # Display array indices. html: false, # Use ANSI color codes rather than HTML. multiline: true, # Display in multiple lines. @@ -42,7 +42,7 @@ raw: false, # Do not recursively format instance variables. sort_keys: false, # Do not sort hash keys. sort_vars: true, # Sort instance variables. limit: false, # Limit arrays & hashes. Accepts bool or int. -ruby19_syntax: false, # Use Ruby 1.9 hash syntax in output. +ruby19_syntax: false, # Use Ruby>=1.9 hash syntax (trailing colon, no hash-rocket) in output. class_name: :class, # Method called to report the instance class name. (e.g. :to_s) object_id: true, # Show object id. color: { @@ -108,7 +108,7 @@ $ ruby 1.rb $ cat > 2.rb require "awesome_print" data = { :now => Time.now, :class => Time.now.class, :distance => 42e42 } -ap data, :indent => -2 # <-- Left align hash keys. +ap data, :indent => -2 # <-- Left align hash keys, indenting 2 spaces. ^D $ ruby 2.rb {