# Ruby Type Profiler WARNING: Use Ruby 2.7.1 or master ## Setup ```sh git clone https://github.com/mame/ruby-type-profiler.git cd ruby-type-profiler git submodule init git submodule update bundle install ``` ```sh bundle exec ruby exe/typeprof target.rb ``` ## Demo ```rb # test.rb def foo(x) if x > 10 x.to_s else nil end end foo(42) ``` ``` $ bundle exec ruby exe/type-profiler test.rb # Classes class Object def foo : (Integer) -> String? end ``` ## Document [English](doc/doc.md) / [日本語](doc/doc.ja.md) ## Todo Contribution is welcome! * Reorganize the test suite (by using minitest framework or something) * Design and implement an reasonable CLI UI (nothing is configurable currently) * Release a gem * Continue to perform an experiment