lib/picky/internals/indexed/wrappers/bundle/calculation.rb in picky-2.1.2 vs lib/picky/internals/indexed/wrappers/bundle/calculation.rb in picky-2.2.0

- old
+ new

@@ -1,35 +1,37 @@ -module Indexed - module Wrappers +module Internals + module Indexed + module Wrappers - module Bundle + 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 up to the needed quality. - # - class Calculation < Wrapper - + # A calculation rewrites the symbol into a float. # + # TODO I really need to allow integers as keys. The code below is just not up to the needed quality. # - def recalculate float - float - end + class Calculation < Wrapper - # - # - def ids sym - @bundle.ids recalculate(sym.to_s.to_f).to_s.to_sym - end + # + # + def recalculate float + float + end - # - # - def weight sym - @bundle.weight recalculate(sym.to_s.to_f).to_s.to_sym + # + # + 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 end \ No newline at end of file