Class: RBS::UnitTest::Convertibles::ToHash
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- RBS::UnitTest::Convertibles::ToHash
- Defined in:
- sig/unit_test/convertibles.rbs,
lib/rbs/unit_test/convertibles.rb
Overview
An object with #to_hash method
Instance Method Summary collapse
-
#initialize(hash = { 'hello' => 'world' }) ⇒ ToHash
constructor
A new instance of ToHash.
- #to_hash ⇒ Hash[untyped, untyped]
Methods inherited from BlankSlate
Constructor Details
#initialize(hash = { 'hello' => 'world' }) ⇒ ToHash
Returns a new instance of ToHash.
135 136 137 |
# File 'lib/rbs/unit_test/convertibles.rb', line 135 def initialize(hash = { 'hello' => 'world' }) @hash = hash end |
Instance Method Details
#to_hash ⇒ Hash[untyped, untyped]
139 140 141 |
# File 'lib/rbs/unit_test/convertibles.rb', line 139 def to_hash @hash end |