Class: Mexico::FileSystem::DesignComponent
- Inherits:
-
Object
- Object
- Mexico::FileSystem::DesignComponent
- Extended by:
- IdRef, StaticCollectionRef
- Includes:
- BoundToCorpus, Poseidon, ROXML
- Defined in:
- lib/mexico/file_system/design_component.rb
Overview
A template class doing nothing.
Instance Attribute Summary collapse
-
#design ⇒ Object
Returns the value of attribute design.
Attributes included from BoundToCorpus
Instance Method Summary collapse
-
#resources ⇒ Array<Resource>
Returns a collection of resources that are associated with this design component.
Methods included from IdRef
Methods included from StaticCollectionRef
Methods included from BoundToCorpus
Instance Attribute Details
#design ⇒ Object
Returns the value of attribute design.
56 57 58 |
# File 'lib/mexico/file_system/design_component.rb', line 56 def design @design end |
Instance Method Details
#resources ⇒ Array<Resource>
Returns a collection of resources that are associated with this design component.
74 75 76 |
# File 'lib/mexico/file_system/design_component.rb', line 74 def resources @corpus.resources.select{ |i| i.design_component === self } end |