Class: Dataset::DirectoryResolver
- 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
- #<<(path) ⇒ Object
-
#initialize(*paths) ⇒ DirectoryResolver
constructor
A new instance of DirectoryResolver.
Methods inherited from Resolver
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 |