Class: RBS::UnitTest::Convertibles::ToI

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 = 3) ⇒ ToI

Returns a new instance of ToI.



34
35
36
# File 'lib/rbs/unit_test/convertibles.rb', line 34

def initialize(value = 3)
  @value = value
end

Instance Method Details

#to_iObject



38
39
40
# File 'lib/rbs/unit_test/convertibles.rb', line 38

def to_i
  @value
end