Sha256: 7338dd3d7d01232fb728f04537430b7bdd6eb24a1f7a5643866fa57aec12326c
Contents?: true
Size: 872 Bytes
Versions: 118
Compression:
Stored size: 872 Bytes
Contents
module Awspec::Generator module Doc module Type class AccountAttributeBase < Base def initialize Awspec::Stub.load 'account' @type_name = type_name end def doc_template template = <<-'EOF' ## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a> <%= @type_name %> account attributes. <%- if @descriptions.include?('first') -%><%= @descriptions['first'] %><%- end -%> <% @matchers.each do |matcher| %> ### <%= matcher %> <%- if @descriptions.include?(matcher) -%><%= @descriptions[matcher] %><%- end -%> <% end %> <%- unless its.empty? -%>### <%= its.join(', ') %><%- end -%> <%- if @descriptions.include?('advanced') -%> ### :unlock: Advanced use <%= @descriptions['advanced'] %><%- end -%> EOF template end end end end end
Version data entries
118 entries across 118 versions & 4 rubygems