1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Intentionally malformed Ruby for error handling tests class BrokenClass def incomplete_method # Missing 'end' - syntax error def another_method "this should not be parsed" end end # Unclosed string invalid_string = "this string never closes # Invalid method definition def (broken receiver).method_name end