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.
34 35 36 |
# File 'lib/rbs/unit_test/convertibles.rb', line 34 def initialize(value = 3) @value = value end |
Instance Method Details
#to_i ⇒ Object
38 39 40 |
# File 'lib/rbs/unit_test/convertibles.rb', line 38 def to_i @value end |