Class: Avm::Data::Loader

Inherits:
Performer show all
Defined in:
lib/avm/data/loader.rb

Instance Method Summary collapse

Methods inherited from Performer

#immutable_constructor_args, #perform, #performable?

Instance Method Details

#cannot_perform_reasonString?

Returns:

  • (String, nil)


14
15
16
17
18
19
# File 'lib/avm/data/loader.rb', line 14

def cannot_perform_reason
  return 'Source path not set' if source_path.blank?
  return "\"#{source_path}\" is not a file" unless source_path.file?

  nil
end