54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/betterdocs/result_representer_collector.rb', line 54
def to_s
result = "*** #{representer} ***\n"
if properties = @properties.values.full?
result << "\nProperties:"
nested_properties.each_with_object(result) do |property, r|
r << "\n#{property.full_name}: (#{property.types * '|'}): #{property.description}\n"
end
end
if links = @links.values.full?
result << "\nLinks:"
links.each_with_object(result) do |link, r|
r << "\n#{link.full_name}: #{link.description}\n" end
end
result
end
|