This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

coerce

        # Float.coerce

(from ruby core)
---
    coerce(other) -> array

---

Returns a 2-element array containing `other` converted to a Float and
`self`:

    f = 3.14                 # => 3.14
    f.coerce(2)              # => [2.0, 3.14]
    f.coerce(2.0)            # => [2.0, 3.14]
    f.coerce(Rational(1, 2)) # => [0.5, 3.14]
    f.coerce(Complex(1, 0))  # => [1.0, 3.14]

Raises an exception if a type conversion fails.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.