Class: RBS::UnitTest::Convertibles::ToI
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- RBS::UnitTest::Convertibles::ToI
- Defined in:
- lib/rbs/unit_test/convertibles.rb
Instance Method Summary collapse
-
#initialize(value = 3) ⇒ ToI
constructor
A new instance of ToI.
- #to_i ⇒ Object
Methods inherited from BlankSlate
Constructor Details
#initialize(value = 3) ⇒ ToI
Returns a new instance of ToI.
35 36 37 |
# File 'lib/rbs/unit_test/convertibles.rb', line 35 def initialize(value = 3) @value = value end |
Instance Method Details
#to_i ⇒ Object
39 40 41 |
# File 'lib/rbs/unit_test/convertibles.rb', line 39 def to_i @value end |