README.md in puts_debug-0.1.0 vs README.md in puts_debug-0.2.0
- old
+ new
@@ -39,50 +39,38 @@
```ruby
# Method signature:
-def pd(h = {}, line_symbol = nil, show_lines = :both, empty_lines_margin = nil)
+def pd(args)
# ...
end
-pd('something') # =>
-something
-
-pd({name: 'Yogurt', calories: 200}) # =>
+pd('something') =>
+============================================================
+something
+============================================================
+
+pd(data: 'something', data_color: 'magenta', lines: :none) =>
+something
+
+pd(name: 'Yogurt') =>
+============================================================
name: Yogurt
-calories: 200
+============================================================
-
-pd(1, '-', :both, 1) #=>
-
+pd(data: 1, symbol: '-', margin: 1) =>
+
------------------------------------------------------------
1
------------------------------------------------------------
-
-pd({a: 1, b: 3}, '*', :both, 2) #=>
-
+pd(data: {a: 1, b: 3}, symbol: '*') =>
************************************************************
a: 1
b: 3
************************************************************
-
-
-pd({a: 1, b: 3}, '=', :top, 1)
-pd('In the midlle')
-pd({c:2, d: 33}, '=', :bottom, 1)
-#=>
-
-============================================================
-a: 1
-b: 3
-In the midlle
-c: 2
-d: 33
-============================================================
-
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.