Class: Dotcodegen::FormatOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/dotcodegen/format_output.rb

Class Method Summary collapse

Class Method Details

.format(generated_test_code) ⇒ Object



5
6
7
# File 'lib/dotcodegen/format_output.rb', line 5

def self.format(generated_test_code)
  generated_test_code.gsub(/^```[a-zA-Z]*\n/, '').gsub(/\n```$/, '')
end