Sha256: 7b501037089854ad53ca270255b76e0c6df98b458d5eba746cf9df9c8e8b7e9f
Contents?: true
Size: 1.58 KB
Versions: 5
Compression:
Stored size: 1.58 KB
Contents
# Copyright 2019 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
5 entries across 5 versions & 1 rubygems