Sha256: 8c2eb5f17f7dbd5c0d479d5a50690c1765ce90e9f8ae76b623ec82643485293a
Contents?: true
Size: 273 Bytes
Versions: 1
Compression:
Stored size: 273 Bytes
Contents
module RSemantic class SearchResult include Comparable attr_reader :document attr_reader :score def initialize(document, score) @document = document @score = score end def <=>(other) @score <=> other.score end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsemantic-0.3.0 | lib/rsemantic/search_result.rb |