class Koota::Pattern

This is a simple class holding a pattern string and its references hash.

Attributes

refs[R]
string[R]

Public Class Methods

new(pattern, refs = {}) click to toggle source
# File lib/koota/pattern.rb, line 8
def initialize(pattern, refs = {})
  @string = pattern
  @refs   = refs
end

Public Instance Methods

==(other) click to toggle source
# File lib/koota/pattern.rb, line 13
def ==(other)
  other.class == self.class && other.string == string && other.refs == refs
end