Class: Dataset::DirectoryResolver

Inherits:
Resolver
  • Object
show all
Defined in:
lib/dataset/resolver.rb

Overview

Resolves a dataset by looking for a file in the provided directory path that has a name matching the identifier. Of course, should the identifier be a class already, it is simply returned.

Instance Method Summary collapse

Methods inherited from Resolver

#identifiers, #resolve

Constructor Details

#initialize(*paths) ⇒ DirectoryResolver

Returns a new instance of DirectoryResolver.



69
70
71
# File 'lib/dataset/resolver.rb', line 69

def initialize(*paths)
  @paths = paths
end

Instance Method Details

#<<(path) ⇒ Object



73
74
75
# File 'lib/dataset/resolver.rb', line 73

def <<(path)
  @paths << path
end