README.md in state_inspector-1.0.0.rc1 vs README.md in state_inspector-1.0.0

- old
+ new

@@ -154,11 +154,11 @@ ```ruby StateInspector::Reporter[MyTargetClass] = ExampleObserver ``` -## Manually Create Informers +## Manually Create or Remove Informers To manually create informant methods use `state_inspector.snoop_setters :a=, :b=` and `state_inspector.snoop_methods :a, :b`. ```ruby @@ -193,9 +193,20 @@ # [#<MyClass:0x005608eb9aead0 @informant=true, @a=1, @b=2, @c=3>, "@c", nil, 3], # [#<MyClass:0x005608eb9aead0 @informant=true, @a=1, @b=2, @c=3>, :x, 4, 5, 6] # ] ``` The nils in the values above represent the previous value the instance variable returned. + +#### Remove Informers + +To remove informers simply use `state_inspector.restore_methods`. This takes out the hook from +each method that waits for the `informer?` method to be true. + +```ruby +# continuing from the above example + +m.state_inspector.restore_methods :b=, :c=, :x +``` ## Reporter Legend The format of a report sent will always start with the object that sent it; aka `self`. Next you will have either a string representing and instance variable of a symbol representing a method call. If it's