Sha256: f75a2187031987461f88f223352998f09c2704dd83ff6a3818647135fa481f1b
Contents?: true
Size: 1.66 KB
Versions: 13
Compression:
Stored size: 1.66 KB
Contents
# Copyright 2022 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? alias jss_real_file? j_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 alias jss_include? j_include? end # module end # module end # module
Version data entries
13 entries across 13 versions & 1 rubygems