Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/transcriptic/core_ext/pathname.rb
Instance Method Summary collapse
Instance Method Details
#transcriptic_project? ⇒ Boolean
2 3 4 |
# File 'lib/transcriptic/core_ext/pathname.rb', line 2 def transcriptic_project? self.join('Labfile').exist? end |
#transcriptic_project_root ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/transcriptic/core_ext/pathname.rb', line 6 def transcriptic_project_root self.ascend do |potential_root| if potential_root.transcriptic_project? return potential_root end end end |