Sha256: b2bdb8ea2e25b3394201926154637d166371a7717ffbda396d447ca7d5887564

Contents?: true

Size: 171 Bytes

Versions: 4

Compression:

Stored size: 171 Bytes

Contents

require 'mathn'

class Numeric
  # Squares the number
  def square
    self * self
  end

  # Finds the square root of the number
  def sqrt
    Math.sqrt(self)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
darkhelmet-darkext-0.0.2 lib/darkext/numeric.rb
darkhelmet-darkext-0.0.3 lib/darkext/numeric.rb
darkhelmet-darkext-0.1.0 lib/darkext/numeric.rb
darkhelmet-darkext-0.2.0 lib/darkext/numeric.rb