README.md in method_call_tree-1.1.0 vs README.md in method_call_tree-1.2.0
- old
+ new
@@ -40,20 +40,40 @@
```
result
```
+foo
+├───── bar
+└───── baz
+ └───── hoge
+```
+
+`class` option
+
+```ruby
+tree = MethodCallTree.create(class: true) do
+ Foo.new.foo
+end
+```
+
+result
+
+```
Foo::foo
├───── Foo::bar
└───── Foo::baz
└───── Foo::hoge
```
+---
+
`args` options enable
```ruby
require 'method_call_tree'
+
def fibonacci(a = 1, b = 0)
return if a > 10
fibonacci(a + b, a)
end
@@ -65,16 +85,16 @@
```
result
```
-Object::fibonacci(a = 1, b = 0)
-└───── Object::fibonacci(a = 1, b = 1)
- └───── Object::fibonacci(a = 2, b = 1)
- └───── Object::fibonacci(a = 3, b = 2)
- └───── Object::fibonacci(a = 5, b = 3)
- └───── Object::fibonacci(a = 8, b = 5)
- └───── Object::fibonacci(a = 13, b = 8)
+fibonacci(a = 1, b = 0)
+└───── fibonacci(a = 1, b = 1)
+ └───── fibonacci(a = 2, b = 1)
+ └───── fibonacci(a = 3, b = 2)
+ └───── fibonacci(a = 5, b = 3)
+ └───── fibonacci(a = 8, b = 5)
+ └───── fibonacci(a = 13, b = 8)
```
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).