A class representing a stanza in a configuration file.
Stanza
differs from Entity
only in providing a
length
method to count the number of keys in it.
Returns the number of elements in the stanza.
The actual Atom feed returned will have extra fields giving metadata about the stanza, which will not be counted.
Returns: a nonnegative integer.
# File lib/splunk-sdk-ruby/entity/stanza.rb, line 39 def length() @state["content"]. reject() { |k| k.start_with?("eai") || k == "disabled" }. length() end