Method: TestML::Compiler::Lite#fail_
- Defined in:
- lib/testml/compiler/lite.rb
#fail_(message = nil) ⇒ Object
188 189 190 191 192 193 |
# File 'lib/testml/compiler/lite.rb', line 188 def fail_(=nil) text = "Failed to compile TestML document.\n" text << "Reason: #{message}\n" if text << "\nCode section of failure:\n#{@line}\n#{@code}\n" fail text end |