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

Version Path
awspec-1.25.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.25.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.24.4 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.24.3 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.24.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.24.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.24.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.23.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.22.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.22.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.21.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.21.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.20.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.19.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.19.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.19.0 lib/awspec/generator/doc/type/account_attribute_base.rb
cthiesfork-awspec-1.2.4 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.6 lib/awspec/generator/doc/type/account_attribute_base.rb