Module: FunWith::Patterns::Loader::ObjectAPI

Defined in:
lib/fun_with/patterns/loader/object_api.rb

Overview

To simplify installing the loader pattern, loader_pattern_configure() is now going to be callable on all objects by default, and will include FunWith::Patterns::Loader

Instance Method Summary collapse

Instance Method Details

#loader_pattern_configure(*args) ⇒ Object



8
9
10
11
12
13
# File 'lib/fun_with/patterns/loader/object_api.rb', line 8

def loader_pattern_configure( *args )
  include FunWith::Patterns::Loader
  
  # hoping (vainly) that when the include finishes, loader_pattern_configure() is now a different method
  loader_pattern_configure( *args )
end