1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Fix method signature after change in IRB (#390)

This change in IRB changed the method #output_value signature in an incompatible way; fixed
This commit is contained in:
Florian Ebeling 2021-01-13 20:14:58 +01:00 committed by GitHub
parent b348f44ea0
commit c55cf6aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ module AwesomePrint
def usual_rb def usual_rb
IRB::Irb.class_eval do IRB::Irb.class_eval do
def output_value def output_value(*args)
ap @context.last_value ap @context.last_value
rescue NoMethodError rescue NoMethodError
puts "(Object doesn't support #ai)" puts "(Object doesn't support #ai)"