Class: Mexico::FileSystem::DesignComponent

Inherits:
Object
  • Object
show all
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

Attributes included from BoundToCorpus

#corpus

Instance Method Summary collapse

Methods included from StaticCollectionRef

collection_ref

Methods included from IdRef

id_ref

Methods included from BoundToCorpus

#bind_to_corpus

Instance Attribute Details

#designObject

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

#resourcesArray<Resource>

Returns a collection of resources that are associated with this design component.

Returns:

  • (Array<Resource>)

    an array of resources 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