Class: Yogurt::CodeGenerator::GeneratedFile

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/yogurt/code_generator/generated_file.rb

Defined Under Namespace

Classes: FileType

Instance Method Summary collapse

Instance Method Details

#contentsObject



41
42
43
44
45
46
47
48
49
50
# File 'lib/yogurt/code_generator/generated_file.rb', line 41

def contents
  <<~STRING
    # typed: strict
    # frozen_string_literal: true

    require 'pp'

    #{code}
  STRING
end