class Pathname
Public Instance Methods
exclude?(component)
click to toggle source
# File lib/githooks/core_ext/pathname.rb, line 26 def exclude?(component) !include?(component) end
include?(component)
click to toggle source
# File lib/githooks/core_ext/pathname.rb, line 22 def include?(component) to_s.split(File::SEPARATOR).include?(component) end