class Mutiny::Pattern
Attributes
raw[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/mutiny/pattern.rb, line 5 def initialize(raw) @raw = raw end
Public Instance Methods
match?(identifier)
click to toggle source
# File lib/mutiny/pattern.rb, line 9 def match?(identifier) raw == "*" || identifier.start_with?(raw) end
to_s()
click to toggle source
# File lib/mutiny/pattern.rb, line 13 def to_s raw end