Module: Dichotomy::Extensions::Defaults::ExtensionMethods

Defined in:
lib/dichotomy/extensions/defaults/extension_methods.rb

Instance Method Summary collapse

Instance Method Details

#register_type(type) ⇒ Object



5
6
7
8
9
10
# File 'lib/dichotomy/extensions/defaults/extension_methods.rb', line 5

def register_type(type)
  notify(:register_type, type)

  #all the strategies are now added to the build manager from all the extensions
  @build_manager.build(type)
end

#resolve_type(type) ⇒ Object



12
13
14
15
16
17
# File 'lib/dichotomy/extensions/defaults/extension_methods.rb', line 12

def resolve_type(type)
  notify(:resolve_type, type)

  #all the strategies are now added to the build manager from all the extensions
  @build_manager.build(type)
end