ruby / Typeprof
Licence: mit
An experimental type-level Ruby interpreter for testing and understanding Ruby code
Stars: ✭ 366
Programming Languages
ruby
36898 projects - #4 most used programming language
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
Playground
You can try typeprof gem on the Web via the URL below.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].