lib/brcobranca/limpeza.rb in brcobranca-3.2.0 vs lib/brcobranca/limpeza.rb in brcobranca-4.0.0
- old
+ new
@@ -6,14 +6,14 @@
# @return [String]
# @example
# 1.9 #=> 190
# 1.93 #=> 193
def limpa_valor_moeda
- inicio, fim = self.to_s.split(/\./)
- (inicio + fim.ljust(2,'0'))
+ inicio, fim = to_s.split(/\./)
+ (inicio + fim.ljust(2, '0'))
end
end
end
-[ Float, String ].each do |klass|
+[Float, String].each do |klass|
klass.class_eval { include Brcobranca::Limpeza }
-end
\ No newline at end of file
+end