lib/molecules/empirical_formula.rb in bahuvrihi-molecules-0.1.2 vs lib/molecules/empirical_formula.rb in bahuvrihi-molecules-0.2.0

- old
+ new

@@ -297,10 +297,10 @@ # Spectrom. (1991) 2 336-348' # (see {Unimod Mass Help}[http://www.unimod.org/masses.html]) # - Masses are calculated such that mathematical operations # are performed on the return of the block. # - def mass(&block) + def mass(&block) # :yields: element if block_given? mass = 0 each {|e, n| mass = (yield(e) * n) + mass } mass else