Sha256: cda8c94bdb85a1f1d8d1973ec64d552dcc6419a78cf362f69d5b7752e8ea3c41
Contents?: true
Size: 639 Bytes
Versions: 34
Compression:
Stored size: 639 Bytes
Contents
module Indexed module Wrappers module Bundle # A calculation rewrites the symbol into a float. # # TODO I really need to allow integers as keys. The code below is just not ok. # class Calculation < Wrapper # # def recalculate float float end # # def ids sym @bundle.ids recalculate(sym.to_s.to_f).to_s.to_sym end # # def weight sym @bundle.weight recalculate(sym.to_s.to_f).to_s.to_sym end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems