Sha256: fe038f8a2a59e28e8a65a50f510eaa1c35d9abdc1bef4374a50f6209e50d1d8c

Contents?: true

Size: 220 Bytes

Versions: 10

Compression:

Stored size: 220 Bytes

Contents

module Waves
  module Ext
    module Float
      def to_delimited(delim=',')
        self.to_s.gsub(/(\d)(?=(\d\d\d)+\.)/, "\\1#{delim}")
      end
    end
  end
end

class Float # :nodoc:
  include Waves::Ext::Float
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
dyoder-waves-0.8.0 lib/ext/float.rb
waves-edge-2009.03.10.13.14 lib/ext/float.rb
waves-stable-2009.3.10 lib/ext/float.rb
waves-0.9.3 lib/waves/ext/float.rb
waves-0.9.2 lib/waves/ext/float.rb
waves-0.9.1 lib/waves/ext/float.rb
waves-0.9.0 lib/waves/ext/float.rb
waves-0.8.2 lib/ext/float.rb
waves-0.8.1 lib/ext/float.rb
waves-0.8.0 lib/ext/float.rb