docs/stdlib.md in rbs-0.5.0 vs docs/stdlib.md in rbs-0.6.0
- old
+ new
@@ -118,11 +118,10 @@
The test scripts would look like the following:
```rb
class StringTest < StdlibTest
target String
- using hook.refinement
def test_gsub
s = "string"
s.gsub(/./, "")
s.gsub("a", "b")
@@ -134,10 +133,9 @@
end
```
You need two method calls, `target` and `using`.
`target` method call tells which class is the subject of the class.
-`using hook.refinement` installs a special instrumentation for stdlib, based on refinements.
And you write the sample programs which calls all of the patterns of overloads.
Note that the instrumentation is based on refinements and you need to write all method calls in the unit class definitions.
If the execution of the program escape from the class definition, the instrumentation is disabled and no check will be done.