Class: RBS::UnitTest::Convertibles::ToInt
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- RBS::UnitTest::Convertibles::ToInt
- Defined in:
- lib/rbs/unit_test/convertibles.rb
Instance Method Summary collapse
-
#initialize(value = 3) ⇒ ToInt
constructor
A new instance of ToInt.
- #to_int ⇒ Object
Methods inherited from BlankSlate
Constructor Details
#initialize(value = 3) ⇒ ToInt
Returns a new instance of ToInt.
45 46 47 |
# File 'lib/rbs/unit_test/convertibles.rb', line 45 def initialize(value = 3) @value = value end |
Instance Method Details
#to_int ⇒ Object
49 50 51 |
# File 'lib/rbs/unit_test/convertibles.rb', line 49 def to_int @value end |