Method: AutoTypeDoc::MethodInfo#to_h

Defined in:
lib/auto_type_doc/method_info.rb

#to_hObject



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/auto_type_doc/method_info.rb', line 49

def to_h
  h = {}
  h[:arguments] = arguments.map(&:to_h) if arguments.any?
  h.merge(
    return_types: return_types,
    source_location: {
      path: source_file,
      line: source_line
    }
  )
end