Class: Tapioca::Compilers::TodosCompiler

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/compilers/todos_compiler.rb

Overview

Instance Method Summary collapse

Instance Method Details

#compileObject


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