lib/virtus/attribute_set.rb
# Iterate over each attribute in the set
#
# @example
#   attribute_set = AttributeSet.new(attributes, parent)
#   attribute_set.each { |attribute| ... }
#
# @yield [attribute]
#
# @yieldparam [Attribute] attribute
#   each attribute in the set
#
# @return [self]
#
# @api public
Iterate over each attribute in the set
Iterate over each attribute in the set
def each
      return to_enum unless block_given?
      @index.values.uniq.each { |attribute| yield attribute }
      self
    end
def each return to_enum unless block_given? @index . values . uniq . each { | attribute | yield attribute } self end
Iterate over each attribute in the set
Iterate over each attribute in the set
None
self
]
<not_specific>
None
<not_specific>
attribute each attribute in the set
attribute each attribute in the set
example
attribute_set = AttributeSet.new(attributes, parent) attribute_set.each { |attribute| ...
attribute_set = AttributeSet . new ( attributes parent ) attribute_set . each { |attribute| ...
api
None