Method: Jazzy::Config#grouped_attributes

Defined in:
lib/jazzy/config.rb

#grouped_attributesObject

Find keyed versions of the attributes, by config file key and then name-in-code Optional block allows filtering/overriding of attribute list.



635
636
637
638
639
640
641
# File 'lib/jazzy/config.rb', line 635

def grouped_attributes
  attrs = self.class.all_config_attrs
  attrs = yield attrs if block_given?
  %i[config_file_key name].map do |property|
    attrs.group_by(&property)
  end
end