Method: WordTree::Disk::Library#dir_of
- Defined in:
- lib/wordtree/disk/library.rb
#dir_of(book_id) ⇒ Object
returns the full path of a book’s subdirectory within the library Accepts either a String or a LibraryLocator object
26 27 28 |
# File 'lib/wordtree/disk/library.rb', line 26 def dir_of(book_id) File.(LibraryLocator.identity(book_id).relpath, root) end |