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.
44 45 46 |
# File 'lib/rbs/unit_test/convertibles.rb', line 44 def initialize(value = 3) @value = value end |
Instance Method Details
#to_int ⇒ Object
48 49 50 |
# File 'lib/rbs/unit_test/convertibles.rb', line 48 def to_int @value end |