Module: Loom::Pattern

Defined in:
lib/loom/pattern/reference_set.rb,
lib/loom/pattern.rb,
lib/loom/pattern/dsl.rb,
lib/loom/pattern/hook.rb,
lib/loom/pattern/loader.rb,
lib/loom/pattern/pattern.rb,
lib/loom/pattern/reference.rb,
lib/loom/pattern/result_reporter.rb,
lib/loom/pattern/definition_context.rb,
lib/loom/pattern/expanding_reference.rb

Overview

NB: The use of the word “mod” or “module” in this file probably means a ::Module, not a Loom::Mods::Module

Defined Under Namespace

Modules: DSL Classes: DefinitionContext, ExpandingReference, Hook, LetMapEntry, Loader, Pattern, Reference, ReferenceSet, ResultReporter

Constant Summary collapse

PatternDefinitionError =
Class.new Loom::LoomError
DSL_METHODS =
[
  :desc,
  :description,

  :pattern,
  :weave,
  :report,

  :with_facts,
  :let,
  :before,
  :after,

  :namespace
]
SiteFileNotFound =
Class.new Loom::LoomError
DuplicatePatternRef =
Class.new Loom::LoomError
NoReferenceForSlug =
Class.new Loom::LoomError
InvalidPatternNamespace =
Class.new Loom::LoomError

Class Method Summary collapse

Class Method Details

.included(pattern_mod) ⇒ Object



6
7
8
9
# File 'lib/loom/pattern.rb', line 6

def included(pattern_mod)
  Loom.log.debug2(self) { "pattern module loaded => #{pattern_mod}" }
  pattern_mod.extend DSL
end