Skip to content

arpith/kurangu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kurangu

Runtime type collection for Ruby

Installation

gem install kurangu

Usage

kurangu input.rb where input.rb is the file you want annotations for 😊

By default, Kurangu generates annotations for files in the same directory as the input file.

How It Works

Kurangu uses TracePoints to listen to method calls and returns, and to collect the runtime types for the arguments and return values.

Then, using the method’s parameter information, it creates signatures for each call and updates the annotations file. The signatures are used to create an intersection type for the type checker.

About

Runtime type collection for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages