diff options
author | tomoya ishida <[email protected]> | 2024-02-22 22:16:41 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-02-22 13:16:46 +0000 |
commit | 88431c47baccff2b5b5e12d059f0cb1f12ef29d1 () | |
tree | f7eda826bfc08aaf1092ee414481432670bb4be9 /lib/irb/output-method.rb | |
parent | 183c574d54c000e77004b5873ba2c492e4819853 (diff) |
[ruby/irb] Delete IRB::NotImplementedError
(https://.com/ruby/irb/pull/878) https://.com/ruby/irb/commit/6751778948
-rw-r--r-- | lib/irb/output-method.rb | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -9,16 +9,10 @@ module IRB # IRB::Notifier. You can define your own output method to use with Irb.new, # or Context.new class OutputMethod - class NotImplementedError < StandardError - def initialize(val) - super("Need to define `#{val}'") - end - end - # Open this method to implement your own output method, raises a # NotImplementedError if you don't define #print in your own class. def print(*opts) - raise NotImplementedError, "print" end # Prints the given +opts+, with a newline delimiter. |