Class: RBS::UnitTest::Convertibles::ToHash

Inherits:
BlankSlate
  • Object
show all
Defined in:
lib/rbs/unit_test/convertibles.rb

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

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_hashObject



139
140
141
# File 'lib/rbs/unit_test/convertibles.rb', line 139

def to_hash
  @hash
end