README.md in state_inspector-1.0.4 vs README.md in state_inspector-1.0.5

- old
+ new

@@ -117,9 +117,18 @@ `toggle_snoop`. If you would like to avoid injecting all setter methods for reporting you may either use `state_inspector.skip_setter_snoops` (before any toggling) or the helper `toggle_snoop_clean` which will cleanly remove its anti-setter hook once done (meaning the next `toggle_informant` will inject the informant code into all setters). +The helper block also pipes in the current observer for the object you're toggling. So you may access +it within the block by pipe assigning it to a variable. + +```ruby +toggle_snoop(m) do |observer| + observer # Whatever observer happens to be assigned to this object or its class +end + +``` ## Observers To include all Observers into scope you can do: