Class: RBS::UnitTest::Convertibles::ToF

Inherits:
BlankSlate
  • Object
show all
Defined in:
lib/rbs/unit_test/convertibles.rb

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

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_fObject



58
59
60
# File 'lib/rbs/unit_test/convertibles.rb', line 58

def to_f
  @value
end