class RSemantic::SearchResult
Attributes
document[R]
score[R]
Public Class Methods
new(document, score)
click to toggle source
# File lib/rsemantic/search_result.rb, line 7 def initialize(document, score) @document = document @score = score end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/rsemantic/search_result.rb, line 12 def <=>(other) @score <=> other.score end