summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-12-08 18:19:53 +1300
committerGitHub <noreply@github.com>2022-12-08 18:19:53 +1300
commit6fd5d2dc003bda5ce0685abd2b975d7ac7079d46 (patch)
treea7cffd3b1b2f40b76511d785b5c00f3d35245ee6 /error.c
parentb2764752b2bccb8e4574891d380d0f0a3d67add0 (diff)
downloadruby-6fd5d2dc003bda5ce0685abd2b975d7ac7079d46.tar.gz
Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867)
Diffstat (limited to 'error.c')
-rw-r--r--error.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/error.c b/error.c
index e256f3bf37..bf3725bc47 100644
--- a/error.c
+++ b/error.c
@@ -3024,14 +3024,12 @@ Init_Exception(void)
rb_eSyntaxError = rb_define_class("SyntaxError", rb_eScriptError);
rb_define_method(rb_eSyntaxError, "initialize", syntax_error_initialize, -1);
- ID id_path = rb_intern_const("path");
-
/* the path failed to parse */
- rb_attr(rb_eSyntaxError, id_path, TRUE, FALSE, FALSE);
+ rb_attr(rb_eSyntaxError, idPath, TRUE, FALSE, FALSE);
rb_eLoadError = rb_define_class("LoadError", rb_eScriptError);
/* the path failed to load */
- rb_attr(rb_eLoadError, id_path, TRUE, FALSE, FALSE);
+ rb_attr(rb_eLoadError, idPath, TRUE, FALSE, FALSE);
rb_eNotImpError = rb_define_class("NotImplementedError", rb_eScriptError);