Skip to content

Commit f8493ed

Browse files
Use docstrings
1 parent 7a6b4d2 commit f8493ed

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

gems/smithy/lib/smithy/templates/client/waiters.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ module <%= module_name %>
1414
<% end -%>
1515
# @api private
1616
#
17-
# <%= waiter.documentation %>
17+
<% waiter.docstrings.each do |docstring| -%>
18+
# <%= docstring %>
19+
<% end -%>
1820
#
1921
class <%= waiter.name %>
2022
def initialize(options = {})

gems/smithy/lib/smithy/views/client/waiters.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def initialize(operation, name, waiter)
5050

5151
attr_reader :operation_name, :name, :documentation, :acceptors, :min_delay, :max_delay, :deprecated
5252

53+
def docstrings
54+
@documentation.split("\n")
55+
end
56+
5357
def formatted_acceptors(acceptors)
5458
acceptors.each { |acceptor| preprocess_acceptor(acceptor) }
5559

0 commit comments

Comments
 (0)