Sha256: 9468a9e663d1fc5e712d32fb2ad5e0e027f6773f5d2a12b59c2567c3befa9342

Contents?: true

Size: 168 Bytes

Versions: 9

Compression:

Stored size: 168 Bytes

Contents

# encoding: utf-8

module Rubymisc
  module Float
    def percent_of(number)
      self * 100 / number
    end
  end
end

::Float.module_eval 'include Rubymisc::Float'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubymisc-0.2.0 lib/rubymisc/ext/float.rb
rubymisc-0.1.0 lib/rubymisc/ext/float.rb
rubymisc-0.0.4 lib/rubymisc/ext/float.rb
rubymisc-0.0.3.3 lib/rubymisc/ext/float.rb
rubymisc-0.0.3.2 lib/rubymisc/ext/float.rb
rubymisc-0.0.3.1 lib/rubymisc/ext/float.rb
rubymisc-0.0.3 lib/rubymisc/ext/float.rb
rubymisc-0.0.2 lib/rubymisc/ext/float.rb
rubymisc-0.0.1 lib/rubymisc/ext/float.rb