Module: BulkLoader::DSL

Defined in:
lib/bulk_loader/dsl.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



35
36
37
# File 'lib/bulk_loader/dsl.rb', line 35

def self.included(mod)
  mod.extend(ClassMethods)
end

Instance Method Details

#bulk_loaderObject



39
40
41
42
43
# File 'lib/bulk_loader/dsl.rb', line 39

def bulk_loader
  return @bulk_loader if defined?(@bulk_loader) && @bulk_loader

  @bulk_loader = BulkLoader::Attribute.new(self)
end