Skip to content

Commit

Permalink
Merge pull request #37100 from jonathanhefner/fix-irb-tab-completion-…
Browse files Browse the repository at this point in the history
…warning

Fix IRB deprecation warning on tab-completion
  • Loading branch information
kaspth committed Oct 7, 2019
2 parents 4c5da60 + 5c80059 commit cb823c1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def inspect
target.inspect
end

# Don't give a deprecation warning on methods that IRB may invoke
# during tab-completion.
delegate :hash, :instance_methods, to: :target

# Returns the class of the new constant.
#
# PLANETS_POST_2006 = %w(mercury venus earth mars jupiter saturn uranus neptune)
Expand Down

0 comments on commit cb823c1

Please sign in to comment.