summaryrefslogtreecommitdiffhomepage
path: root/mrblib/kernel.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-05 21:41:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-05 21:41:28 +0900
commit799c9b30f60a0fd5cc3a04f4121cee94b5d7a192 (patch)
treec1c3ca68bfb10ba412bb2a2622a644648af975b7 /mrblib/kernel.rb
parent6a96bc46d1c17c7208882c8c7d4a15c5a8157d81 (diff)
downloadmruby-799c9b30f60a0fd5cc3a04f4121cee94b5d7a192.tar.gz
mruby-799c9b30f60a0fd5cc3a04f4121cee94b5d7a192.zip
remove eval (that only raises NotImplementedError) from the core; ref #2354
Diffstat (limited to 'mrblib/kernel.rb')
-rw-r--r--mrblib/kernel.rb35
1 files changed, 10 insertions, 25 deletions
diff --git a/mrblib/kernel.rb b/mrblib/kernel.rb
index 81d7acf5d..d0fe47300 100644
--- a/mrblib/kernel.rb
+++ b/mrblib/kernel.rb
@@ -4,39 +4,24 @@
# ISO 15.3.1
module Kernel
- # 15.3.1.2.1
- def self.`(s)
- raise NotImplementedError.new("` not implemented")
- end
-
+ # 15.3.1.2.1 Kernel.`
+ # provided by Kernel#`
# 15.3.1.3.5
def `(s)
- Kernel.`(s)
+ raise NotImplementedError.new("backquotes not implemented")
end
##
- # Calls the given block repetitively.
- #
- # ISO 15.3.1.2.8
- # provided by Kernel#loop
- # def self.loop #(&block)
- # while(true)
- # yield
- # end
- # end
+ # 15.3.1.2.3 Kernel.eval
+ # 15.3.1.3.12 Kernel#eval
+ # NotImplemented by mruby core; use mruby-eval gem
- # 15.3.1.2.3
- def self.eval(s)
- raise NotImplementedError.new("eval not implemented")
- end
-
- # 15.3.1.3.12
- def eval(s)
- Kernel.eval(s)
- end
+ ##
+ # ISO 15.3.1.2.8 Kernel.loop
+ # provided by Kernel#loop
##
- # Alias for +Kernel.loop+.
+ # Calls the given block repetitively.
#
# ISO 15.3.1.3.29
def loop