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.
54 55 56 |
# File 'lib/rbs/unit_test/convertibles.rb', line 54 def initialize(value = 0.1) @value = value end |
Instance Method Details
#to_f ⇒ Object
58 59 60 |
# File 'lib/rbs/unit_test/convertibles.rb', line 58 def to_f @value end |