Method: LazyInit.included

Defined in:
lib/lazy_init.rb

.included(base) ⇒ Object

Called when LazyInit is included in a class Adds both class and instance methods

Parameters:

  • base (Class)

    the class including this module



36
37
38
39
# File 'lib/lazy_init.rb', line 36

def self.included(base)
  base.extend(ClassMethods)
  base.include(InstanceMethods)
end