Sha256: c020bb0f9853181924d6e32036f69a75cea943203d674764fa07f3f58c498997
Contents?: true
Size: 435 Bytes
Versions: 12
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true module PageMagic class Comparator # class Literal - used for modeling and comparing thing directly. E.g. strings class Literal < Comparator def initialize(comparator) super(comparator, false) end def match?(value) comparator == value end def <=>(other) return 1 if other.fuzzy? || other.is_a?(Null) 0 end end end end
Version data entries
12 entries across 12 versions & 1 rubygems