I'm at a bit of a loss as to how to document
https://github.com/microservices/pairtree/blob/master/lib/pairtree/obj.rb.
The class is a Dir descendant, but it has a whole bunch of File class
methods mixed in for convenience. Basically, all the mixed in methods
pass their parameters straight through to File, but with the partree
root/ppath prepended to all filename parameters. There are also a few
methods (entries, each, glob, and []) mixed in from Dir in similar
fashion. In this case, they pass their (prepended) args to Dir, and
alter the results to be relative to the ppath.
So much of the implementation relies on Ruby's metaprogramming that I
just can't figure out how to document it in a way that makes sense.
I'd appreciate suggestions and/or assistance.
Thanks!
Michael