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



33
34
35
# File 'lib/bulk_loader/dsl.rb', line 33

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

Instance Method Details

#bulk_loaderObject



37
38
39
40
41
# File 'lib/bulk_loader/dsl.rb', line 37

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

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