Sha256: 9111ecdb10b970f3e56c58190c4cea25df534c084063e3d4a38ee1adbd821b2b
Contents?: true
Size: 1.58 KB
Versions: 11
Compression:
Stored size: 1.58 KB
Contents
# Copyright 2020 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. This License does not grant permission to use the trade # names, trademarks, service marks, or product names of the Licensor # and its affiliates, except as required to comply with Section 4(c) of # the License and to reproduce the content of the NOTICE file. # # You may obtain a copy of the Apache License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Apache License with the above modification is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the Apache License for the specific # language governing permissions and limitations under the Apache License. # # module JamfRubyExtensions module Pathname module Predicates # Is this a real file rather than a symlink? # @see FileTest.real_file def j_real_file? FileTest.real_file? self end # real_file? # does a path include another? # i.e. is 'other' a descendant of self ? def j_include?(other) eps = expand_path.to_s oeps = other.expand_path.to_s oeps != eps && oeps.start_with?(eps) end end # module end # module end # module
Version data entries
11 entries across 11 versions & 1 rubygems