Class: RBS::UnitTest::Convertibles::ToF
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- RBS::UnitTest::Convertibles::ToF
- Defined in:
- lib/rbs/unit_test/convertibles.rb
Instance Method Summary collapse
-
#initialize(value = 0.1) ⇒ ToF
constructor
A new instance of ToF.
- #to_f ⇒ Object
Methods inherited from BlankSlate
Constructor Details
#initialize(value = 0.1) ⇒ ToF
Returns a new instance of ToF.
55 56 57 |
# File 'lib/rbs/unit_test/convertibles.rb', line 55 def initialize(value = 0.1) @value = value end |
Instance Method Details
#to_f ⇒ Object
59 60 61 |
# File 'lib/rbs/unit_test/convertibles.rb', line 59 def to_f @value end |