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:
commit
903eff2d63
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue