Sha256: 237b537165d0ee31ec057bdb5837ccd1d1b123b5b683875deb6f8582a0a497fb

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

<%= name %> {
<% sorted_attributes.each do |name, config|
   next if config[:deprecated]
   if config[:validate].is_a?(Array) 
     annotation = "string, one of #{config[:validate].inspect}"
   elsif config[:validate] == :path
     annotation = "a valid filesystem path"
   else 
     annotation = "#{config[:validate]}"
   end

   if name.is_a?(Regexp)
     name = "/" + name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
   end
   if config[:required]
     annotation += " (required)"
   else
     annotation += " (optional)"
   end
   annotation += ", default: #{config[:default].inspect}" if config.include?(:default)
-%>
    <a href="#<%= name %>"><%= name %></a> => ... # <%= annotation %>
<% end -%>
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-lib-1.3.2 docs/plugin-synopsis.html.erb