Module: Guard::Internals::Helpers

Included in:
Guard
Defined in:
lib/guard/internals/helpers.rb

Instance Method Summary collapse

Instance Method Details

#_relative_pathname(path) ⇒ Object


5
6
7
8
9
10
# File 'lib/guard/internals/helpers.rb', line 5

def _relative_pathname(path)
  full_path = Pathname(path)
  full_path.relative_path_from(Pathname.pwd)
rescue ArgumentError
  full_path
end