summaryrefslogtreecommitdiff
path: root/kernel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.rb')
-rw-r--r--kernel.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/kernel.rb b/kernel.rb
index 554de49977..dc5cea1515 100644
--- a/kernel.rb
+++ b/kernel.rb
@@ -17,7 +17,7 @@ module Kernel
#
def class
Primitive.attr! :leaf
- Primitive.cexpr! 'rb_obj_class(self)'
+ Primitive.cexpr! 'rb_obj_class_must(self)'
end
#
@@ -141,6 +141,7 @@ module Kernel
# loop do
# print "Input: "
# line = gets
+ # # break if q, Q is entered or EOF signal (Ctrl-D on Unix, Ctrl-Z on windows) is sent
# break if !line or line =~ /^q/i
# # ...
# end
@@ -291,13 +292,3 @@ module Kernel
end
end
end
-
-class Module
- # Internal helper for built-in initializations to define methods only when YJIT is enabled.
- # This method is removed in yjit_hook.rb.
- private def with_yjit(&block) # :nodoc:
- if defined?(RubyVM::YJIT)
- RubyVM::YJIT.send(:add_yjit_hook, block)
- end
- end
-end