Class: Scrivito::AttributeDefinitionCollection
- Inherits:
-
Object
- Object
- Scrivito::AttributeDefinitionCollection
- Includes:
- Enumerable
- Defined in:
- lib/scrivito/attribute_definition_collection.rb
Overview
This class represents a collection of attribute definitions.
Instance Method Summary collapse
-
#[](name) ⇒ Scrivito::AttributeDefinition?
Find definition of an attribute.
-
#each {|attribute_definition| ... } ⇒ Object
Iterates over the attribute definitions.
Instance Method Details
#[](name) ⇒ Scrivito::AttributeDefinition?
Find definition of an attribute.
35 36 37 |
# File 'lib/scrivito/attribute_definition_collection.rb', line 35 def [](name) attribute_definitions[name.to_s] end |
#each {|attribute_definition| ... } ⇒ Object
Iterates over the attribute definitions.
24 25 26 |
# File 'lib/scrivito/attribute_definition_collection.rb', line 24 def each(&block) attribute_definitions.values.each(&block) end |