diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-09 09:47:12 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-09 09:47:12 -0700 |
| commit | ab6c9c186b6900d8f694bf2029cadea303f72f19 (patch) | |
| tree | b2a95e03290544c49b936fcaf0bf36570e6616d2 | |
| parent | f607fd68d9ae140adae7b014b587f41a63b72b3b (diff) | |
| parent | 5a8e76cc7b2fcff82f4f201cdb6935218b2884a9 (diff) | |
| download | mruby-ab6c9c186b6900d8f694bf2029cadea303f72f19.tar.gz mruby-ab6c9c186b6900d8f694bf2029cadea303f72f19.zip | |
Merge pull request #1162 from h2so5/error-for-external-command-execution
Add NotImplementedError for Kernel.` and Kernel#`
| -rw-r--r-- | mrblib/kernel.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mrblib/kernel.rb b/mrblib/kernel.rb index ad3bc72f7..8ccf3cfa8 100644 --- a/mrblib/kernel.rb +++ b/mrblib/kernel.rb @@ -3,6 +3,17 @@ # # ISO 15.3.1 module Kernel + + # 15.3.1.2.1 + def self.`(s) + raise NotImplementedError.new("` not implemented") + end + + # 15.3.1.3.5 + def `(s) + Kernel.`(s) + end + ## # Calls the given block repetitively. # |
