class Nanoc::Int::StringPattern
@api private
Public Class Methods
new(string)
click to toggle source
# File lib/nanoc/base/entities/pattern.rb, line 32 def initialize(string) @string = string end
Public Instance Methods
captures(_identifier)
click to toggle source
# File lib/nanoc/base/entities/pattern.rb, line 41 def captures(_identifier) nil end
match?(identifier)
click to toggle source
# File lib/nanoc/base/entities/pattern.rb, line 36 def match?(identifier) opts = File::FNM_PATHNAME | File::FNM_EXTGLOB File.fnmatch(@string, identifier.to_s, opts) end
to_s()
click to toggle source
# File lib/nanoc/base/entities/pattern.rb, line 45 def to_s @string end