lib/extenso_pt.rb in extenso_pt-0.1.1 vs lib/extenso_pt.rb in extenso_pt-0.1.2

- old
+ new

@@ -25,10 +25,10 @@ n=(self.is_a?String)?self:'%.2f'%self @@ms=ms;@@cs=cs @@mp=(a2)?ms+"S":mp @@cp=(a4)?cs+"S":cp q=n[/^\d+/].to_s.reverse.scan(/\d{1,3}/).map{|i|i.reverse.to_i} - ExtensoPt.r("",q,0)+ExtensoPt.w(q,(n[/\.\d*/].to_f*100).round) + q.count>8?"":ExtensoPt.r("",q,0)+ExtensoPt.w(q,(n[/\.\d*/].to_f*100).round) end end class String include ExtensoPt end