summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/output-method.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb
index 541c83f24d..aae9e2294d 100644
--- a/lib/irb/output-method.rb
+++ b/lib/irb/output-method.rb
@@ -16,12 +16,14 @@ module IRB
# IRB::Notifier. You can define your own output method to use with Irb.new,
# or Context.new
class OutputMethod
- @RCS_ID='-$Id$-'
+ extend Exception2MessageMapper
+ def_exception :NotImplementedError, "Need to define `%s'"
+
# 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)
- IRB.fail NotImplementedError, "print"
+ OutputMethod.Raise NotImplementedError, "print"
end
# Prints the given +opts+, with a newline delimiter.