Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/corefoundation/extensions.rb

Overview

Ruby float class

Instance Method Summary collapse

Instance Method Details

#to_cfCF::Number

Converts the Float to a CF::Number using CF::Number.from_f

Returns:



14
15
16
# File 'lib/corefoundation/extensions.rb', line 14

def to_cf
  CF::Number.from_f(self)
end