Class: Tapioca::Compilers::TodosCompiler
- Inherits:
-
Object
- Object
- Tapioca::Compilers::TodosCompiler
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/compilers/todos_compiler.rb
Overview
Instance Method Summary collapse
Instance Method Details
#compile ⇒ Object
13 14 15 16 17 18 |
# File 'lib/tapioca/compilers/todos_compiler.rb', line 13 def compile list_todos.each_line.map do |line| next if line.include?("<") || line.include?("class_of") "module #{line.strip.gsub('T.untyped::', '')}; end" end.compact.join("\n") end |