yard icon indicating copy to clipboard operation
yard copied to clipboard

Future request return type

Open tit opened this issue 5 years ago • 1 comments

If method return Array<Hash> type, I want to document fully structure of Hash.

# return [Array<Hash>]
#   [
#     {
#       foo: Integer,
#       date_time: Time
#     }
#   ]
def method_name()
  [
    {
      foo: 42,
      date_time: Time.new
    }
  ]
end

How I can do it?

tit avatar Jul 12 '19 21:07 tit

@tit take a look at issue #425

tcd avatar Nov 01 '19 22:11 tcd