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
cthiesfork-awspec-1.2.2 lib/awspec/generator/doc/type/account_attribute_base.rb
cthiesfork-awspec-1.2.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.5 lib/awspec/generator/doc/type/account_attribute_base.rb
cthiesfork-awspec-1.2.0 lib/awspec/generator/doc/type/account_attribute_base.rb
cthiesfork-awspec-1.1.0 lib/awspec/generator/doc/type/account_attribute_base.rb
cthiesfork-awspec-1.0.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.4 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.3 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.18.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.17.4 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.17.3 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.17.2 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.17.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.17.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.16.1 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.16.0 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.15.3 lib/awspec/generator/doc/type/account_attribute_base.rb
awspec-1.15.2 lib/awspec/generator/doc/type/account_attribute_base.rb