File: //usr/local/rvm/rubies/default/lib/ruby/gems/3.0.0/gems/typeprof-0.12.0/README.md
# TypeProf: A type analysis tool for Ruby code based on abstract interpretation
## Synopsis
```sh
gem install typeprof
typeprof app.rb
```
## Demo
```rb
# test.rb
def foo(x)
if x > 10
x.to_s
else
nil
end
end
foo(42)
```
```
$ typeprof test.rb
# Classes
class Object
def foo : (Integer) -> String?
end
```
## Documentation
[English](doc/doc.md) / [日本語](doc/doc.ja.md)
## Playground
You can try typeprof gem on the Web via the URL below.
https://mame.github.io/typeprof-playground/