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-0.79.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.79.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.78.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.77.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.77.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.76.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.76.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.75.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.75.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.75.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.74.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.74.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.73.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.73.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.73.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.72.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.71.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-0.70.0 lib/awspec/generator/doc/type/account_attribute_base.rb