Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created November 25, 2009 09:49
Show Gist options
  • Save takkanm/242606 to your computer and use it in GitHub Desktop.
Save takkanm/242606 to your computer and use it in GitHub Desktop.
diff --git a/vm_eval.c b/vm_eval.c
index d975809..309931d 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -501,7 +501,11 @@ raise_method_missing(rb_thread_t *th, int argc, const VALUE *argv, VALUE obj,
format = "protected method `%s' called for %s";
}
else if (last_call_status & NOEX_VCALL) {
- format = "undefined local variable or method `%s' for %s";
+ if (strcmp(StringValueCStr(argv[0]), "i")) {
+ format = "undefined local variable or method `%s' for %s";
+ } else {
+ format = "愛が足りません";
+ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment