Class: Puppet::FileSystem::AbsolutePathPattern Private
- Inherits:
-
PathPattern
- Object
- PathPattern
- Puppet::FileSystem::AbsolutePathPattern
- Defined in:
- lib/puppet/file_system/path_pattern.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from PathPattern
PathPattern::ABSOLUTE_UNIX, PathPattern::ABSOLUTE_WINDOWS, PathPattern::CURRENT_DRIVE_RELATIVE_WINDOWS, PathPattern::DOTDOT
Instance Method Summary collapse
- #absolute? ⇒ Boolean private
- #validate ⇒ Object private
Methods inherited from PathPattern
absolute, #glob, #prefix_with, relative, #to_s
Instance Method Details
#absolute? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
84 85 86 |
# File 'lib/puppet/file_system/path_pattern.rb', line 84 def absolute? true end |
#validate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
88 89 90 91 92 93 |
# File 'lib/puppet/file_system/path_pattern.rb', line 88 def validate super if !@pathstr.match?(ABSOLUTE_UNIX) && !@pathstr.match?(ABSOLUTE_WINDOWS) raise(InvalidPattern, _("An absolute PathPattern cannot be a relative path.")) end end |