Redleaf::Archetypes::ClassMethods

The methods to add to including classes

Attributes

archetypes[RW]

(Not documented)

Public Instance Methods

include_archetype( uri, options={} ) click to toggle source

Add an Archetype for the RDF Class declared at the specified uri to the receiving Class or Module.

    # File lib/redleaf/archetypes.rb, line 88
88:         def include_archetype( uri, options={} )
89:             uri = URI( uri ) unless uri.is_a?( URI )
90:             @archetypes ||= {}
91:             @archetypes[ uri ] = options
92: 
93:             Redleaf.logger.debug "Extending %p with %s" % [ self, uri ]
94:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.