Sha256: 6079546f2336c81d54202fd87d194a004b1517a61a05eee78835270463b10482

Contents?: true

Size: 259 Bytes

Versions: 4

Compression:

Stored size: 259 Bytes

Contents

class FuzzyMatch
  # A rule characterized by a regexp. Abstract.
  class Rule
    attr_reader :regexp
    
    def initialize(regexp_or_str)
      @regexp = regexp_or_str.to_regexp
    end
    
    def ==(other)
      regexp == other.regexp
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fuzzy_match-1.4.1 lib/fuzzy_match/rule.rb
fuzzy_match-1.4.0 lib/fuzzy_match/rule.rb
fuzzy_match-1.3.3 lib/fuzzy_match/rule.rb
fuzzy_match-1.3.2 lib/fuzzy_match/rule.rb