class Nanoc::Core::StringPattern
Constants
- MATCH_OPTS
Public Class Methods
new(string)
click to toggle source
# File lib/nanoc/core/string_pattern.rb, line 9 def initialize(string) @string = string end
Public Instance Methods
captures(_identifier)
click to toggle source
# File lib/nanoc/core/string_pattern.rb, line 19 def captures(_identifier) nil end
match?(identifier)
click to toggle source
# File lib/nanoc/core/string_pattern.rb, line 14 def match?(identifier) File.fnmatch(@string, identifier.to_s, MATCH_OPTS) end
to_s()
click to toggle source
# File lib/nanoc/core/string_pattern.rb, line 24 def to_s @string end