Class: MemFile

Inherits:
Object show all
Defined in:
lib/tecsgen/core/generate.rb

Instance Method Summary collapse

Constructor Details

#initializeMemFile

Returns a new instance of MemFile.



5166
5167
5168
# File 'lib/tecsgen/core/generate.rb', line 5166

def initialize
  @string = ""
end

Instance Method Details

#get_stringObject



5174
5175
5176
# File 'lib/tecsgen/core/generate.rb', line 5174

def get_string
  @string
end


5170
5171
5172
# File 'lib/tecsgen/core/generate.rb', line 5170

def print(str)
  @string += str
end