lib/ruby_units/unit_definitions/prefix.rb in ruby-units-1.4.3 vs lib/ruby_units/unit_definitions/prefix.rb in ruby-units-1.4.4
- old
+ new
@@ -29,12 +29,12 @@
'femto' => [%w{f Femto femto}, Rational(1,1e15)],
'atto' => [%w{a Atto atto}, Rational(1,1e18)],
'zepto' => [%w{z Zepto zepto}, Rational(1,1e21)],
'yocto' => [%w{y Yocto yocto}, Rational(1,1e24)]
}.each do |name, definition|
- Unit.define(name) do |unit|
+ RubyUnits::Unit.define(name) do |unit|
aliases, scalar = definition
unit.aliases = aliases
unit.scalar = scalar
unit.kind = :prefix
end
-end
\ No newline at end of file
+end