lib/reality/generators/standard_artifact_dsl.rb
#
# Define an arbitrary artifact and attach it to template_set.
# This delegates the work of creating the template to the supplied block which is passed the template pattern.
#
# The template set is prefixed with the name of the facet from which this is extended if any.
#
# The following options are supported. Additional options are passed to helper methods and may be used.
# * :facets - additional facets that must be enabled for the facet to be generated.
# * :helpers - additional helpers that are added to the default helpers.
# * :guard - The :guard option passed to the template.
#
Define an arbitrary artifact and attach it to template_set.
This delegates the work of creating the template to the supplied block which is passed the template pattern.

The template set is prefixed with the name of the facet from which this is extended if any.

The following options are supported. Additional options are passed to helper methods and may be used.
:facets - additional facets that must be enabled for the facet to be generated.
:helpers - additional helpers that are added to the default helpers.
:guard - The :guard option passed to the template.
Define an arbitrary artifact and attach it to template_set . This delegates the work of creating the template to the supplied block which is passed the template pattern . The template set is prefixed with the name of the facet from which this is extended if any . The following options are supported . Additional options are passed to helper methods and may be used . : facets - additional facets that must be enabled for the facet to be generated . : helpers - additional helpers that are added to the default helpers . : guard - The : guard option passed to the template .
def artifact(template_set_suffix, options = {}, &block)
        block.call(template_set_with_suffix(template_set_suffix),
                   template_set_facets(options),
                   template_set_helpers(options),
                   :guard => options[:guard])
      end
def artifact ( template_set_suffix , options = { } , & block ) block . call ( template_set_with_suffix ( template_set_suffix ) , template_set_facets ( options ) , template_set_helpers ( options ) , :guard => options [ :guard ] ) end
Define an arbitrary artifact and attach it to template_set.
Define an arbitrary artifact and attach it to template_set .
template_set_suffix
<not_specific>
options
<not_specific>
block
<not_specific>