Sha256: fb4c6552d7f4d628179feafc075d8f23927518438f5208558b77db23fc8ac433

Contents?: true

Size: 253 Bytes

Versions: 7

Compression:

Stored size: 253 Bytes

Contents

class Pathname
  def transcriptic_project?
    self.join('Labfile').exist?
  end

  def transcriptic_project_root
    self.ascend do |potential_root|
      if potential_root.transcriptic_project?
        return potential_root
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
transcriptic-0.2.10 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.5 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.4 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.3 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.2 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.1 lib/transcriptic/core_ext/pathname.rb
transcriptic-0.2.0 lib/transcriptic/core_ext/pathname.rb