Class: Annal::Collection
- Inherits:
-
Object
- Object
- Annal::Collection
- Defined in:
- lib/annal/collection.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#dir_source ⇒ Object
Returns the value of attribute dir_source.
Instance Method Summary collapse
- #documents ⇒ Object
- #file_paths ⇒ Object
-
#initialize(dir) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(dir) ⇒ Collection
Returns a new instance of Collection.
4 5 6 7 |
# File 'lib/annal/collection.rb', line 4 def initialize(dir) self.dir = dir self.dir_source = Dir.glob(dir) end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
3 4 5 |
# File 'lib/annal/collection.rb', line 3 def dir @dir end |
#dir_source ⇒ Object
Returns the value of attribute dir_source.
3 4 5 |
# File 'lib/annal/collection.rb', line 3 def dir_source @dir_source end |