Sha256: d22538b209863fcb0fc4d352914761ab7df9f8cd4c33e2cba796e7a22e2df21b

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

# Author::    Nicolas Pouillard  <ertai@lrde.epita.fr>.
# Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
# License::   LGPL
# $Id: /fey/uttk/trunk/lib/uttk/weights/WFloat.rb 8778 2005-09-26T04:34:48.103938Z ertai  $


module Uttk

  module Weights

    class WFloat < Weight

      def get
        return to_f if nan?
        (to_f * 100).floor.to_s + '%'
      end

    end # class WFloat

  end # module Weights

end # module Uttk

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uttk-0.3.5.0 lib/uttk/weights/WFloat.rb
uttk-0.3.1.2 lib/uttk/weights/WFloat.rb
uttk-0.3.6.1 lib/uttk/weights/WFloat.rb