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

Merge pull request #290 from awesome-print/gerrywastaken-fix-bad-url

Update to a real version of the link with mirror
This commit is contained in:
Gerry 2016-11-24 16:39:20 +11:00 committed by GitHub
commit 903eff2d63

View file

@ -65,7 +65,8 @@ module AwesomePrint
def method_tuple(method)
if method.respond_to?(:parameters) # Ruby 1.9.2+
# See http://ruby.runpaint.org/methods#method-objects-parameters
# See http://readruby.chengguangnan.com/methods#method-objects-parameters
# (mirror: http://archive.is/XguCA#selection-3381.1-3381.11)
args = method.parameters.inject([]) do |arr, (type, name)|
name ||= (type == :block ? 'block' : "arg#{arr.size + 1}")
arr << case type