HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
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/