lib/unitwise/expression/composer.rb in unitwise-0.3.1 vs lib/unitwise/expression/composer.rb in unitwise-0.3.2
- old
+ new
@@ -6,10 +6,10 @@
@terms = terms
end
def set
@set ||= terms.reduce(SignedMultiset.new) do |s, t|
- s.increment({f: t.factor, p: t.prefix_code, a: t.atom_code}, t.exponent); s
+ s.increment({f: t.factor, p: t.prefix, a: t.atom}, t.exponent); s
end
end
def numerator
@numerator ||= set.select{|k,v| v > 0}.map do |k,v|
\ No newline at end of file