class FileLoaders::Base

Public Instance Methods

process() click to toggle source
# File lib/file_loaders.rb, line 8
def process
  current_adapter.each do |filename, original_filename|
    process_file(File.open(filename), File.basename(original_filename))
    true
  end
end

Private Instance Methods

adapter_name() click to toggle source
# File lib/file_loaders.rb, line 26
def adapter_name
  raise NotImplemented
end
adapter_settings() click to toggle source
# File lib/file_loaders.rb, line 30
def adapter_settings
  raise NotImplemented
end
current_adapter() click to toggle source
# File lib/file_loaders.rb, line 17
def current_adapter
  name = "FileLoaders::Adapters::#{adapter_name.camelize}"
  name.constantize.new(patterns, adapter_settings)
end
patterns() click to toggle source
# File lib/file_loaders.rb, line 34
def patterns
  raise NotImplemented
end
process_file(_file, _basename) click to toggle source
# File lib/file_loaders.rb, line 22
def process_file(_file, _basename)
  raise NotImplemented
end