Sha256: 936f8334633a0c5713720cfdc04b8644947ce71d1b3c43dcf701028cd9550d38
Contents?: true
Size: 249 Bytes
Versions: 2
Compression:
Stored size: 249 Bytes
Contents
# frozen_string_literal: true module LinkThumbnailer module Graders class Position < ::LinkThumbnailer::Graders::Base def call 1.0 - (description.position.to_f / description.candidates_number.to_f) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
link_thumbnailer-3.4.0 | lib/link_thumbnailer/graders/position.rb |
link_thumbnailer-3.3.2 | lib/link_thumbnailer/graders/position.rb |