lib/guard/yardstick.rb
def smart_path(path)
      if path.start_with?(Dir.pwd)
        Pathname.new(path).relative_path_from(Pathname.getwd).to_s
      else
        path
      end
    end
# Returns a path with pwd removed if needed
#
# @api private
# @return [String]
Returns a path with pwd removed if needed
Returns a path with pwd removed if needed
def smart_path(path)
      if path.start_with?(Dir.pwd)
        Pathname.new(path).relative_path_from(Pathname.getwd).to_s
      else
        path
      end
    end
def smart_path ( path ) if path . start_with? ( Dir . pwd ) Pathname . new ( path ) . relative_path_from ( Pathname . getwd ) . to_s else path end end
Returns a path with pwd removed if needed
Returns a path with pwd removed if needed
None
String
path
api
None