Class: RBS::UnitTest::Convertibles::ToInt

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) ⇒ ToInt

Returns a new instance of ToInt.



44
45
46
# File 'lib/rbs/unit_test/convertibles.rb', line 44

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

Instance Method Details

#to_intObject



48
49
50
# File 'lib/rbs/unit_test/convertibles.rb', line 48

def to_int
  @value
end