lib/tapioca/compilers/symbol_table_compiler.rb in tapioca-0.5.2 vs lib/tapioca/compilers/symbol_table_compiler.rb in tapioca-0.5.3

- old
+ new

@@ -4,20 +4,14 @@ module Tapioca module Compilers class SymbolTableCompiler extend(T::Sig) - sig do - params( - gem: Gemfile::GemSpec, - indent: Integer - ).returns(String) - end - def compile( - gem, - indent = 0 - ) - Tapioca::Compilers::SymbolTable::SymbolGenerator.new(gem, indent).generate + sig { params(gem: Gemfile::GemSpec, rbi: RBI::File, indent: Integer, include_docs: T::Boolean).void } + def compile(gem, rbi, indent = 0, include_docs = false) + Tapioca::Compilers::SymbolTable::SymbolGenerator + .new(gem, indent, include_docs) + .generate(rbi) end end end end