ruby · GitHub

TypeProf: A type analysis tool for Ruby code based on abstract interpretation

Synopsis

gem install typeprof
typeprof app.rb

Demo

# 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 / 日本語

Playground

You can try typeprof gem on the Web via the URL below.

https://mame.github.io/typeprof-playground/

About

An experimental type-level Ruby interpreter for testing and understanding Ruby code

Resources

Readme

License

Security policy

Security policy

Activity

Custom properties

Stars

832 stars

Watchers

24 watching

Forks

100 forks

Releases

Packages

Used by

Contributors

Languages

Read the original on github.com ↗