123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BlankSlate
Instance Chain:
self, BlankSlate
Inherits: RBS::UnitTest::Convertibles::BlankSlate
Defined in: lib/rbs/unit_test/convertibles.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(hash = { 'hello' => 'world' }) ⇒ ToHash

[ GitHub ]

  
# File 'lib/rbs/unit_test/convertibles.rb', line 134

def initialize(hash = { 'hello' => 'world' })
  @hash = hash
end

Instance Method Details

#to_hash

[ GitHub ]

  
# File 'lib/rbs/unit_test/convertibles.rb', line 138

def to_hash
  @hash
end