class Fuzz::Entry
Attributes
object[R]
title[R]
weight[R]
Public Class Methods
new(title:, object:, weight:)
click to toggle source
# File lib/fuzz/entry.rb, line 7 def initialize(title:, object:, weight:) @title = title @object = object @weight = weight end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/fuzz/entry.rb, line 13 def <=>(other) other_weight = other.weight if weight != other_weight other_weight <=> weight else title <=> other.title end end