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