Module: Loom::Pattern

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

Overview

THERE BE DRAGONS HERE TODO: add documentation re: how the .loom file is parsed (exec’d) and turned into a reference set. There’s also a lot of dark magic w/ generating stacktraces to get the correct .loom file line (but I forget if that’s done here or in pattern/reference.rb maybe?)

Defined Under Namespace

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

Constant Summary collapse

SiteFileNotFound =
Class.new Loom::LoomError
RecursiveExpansionError =
Class.new Loom::LoomError
DuplicatePatternRef =
Class.new Loom::LoomError
UnknownPatternMethod =
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