diff --git a/lib/awesome_print_motion/formatter.rb b/lib/awesome_print_motion/formatter.rb index f1a2bbb..9d7ba83 100755 --- a/lib/awesome_print_motion/formatter.rb +++ b/lib/awesome_print_motion/formatter.rb @@ -257,7 +257,8 @@ def methods_array(a) #------------------------------------------------------------------------------ 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