class RBS::UnitTest::Convertibles::ToHash - rbs: Ruby Standard Library Documentation

# class RBS::UnitTest::Convertibles::ToHash

### Public Class Methods

new(hash = { 'hello' => 'world' }) click to toggle source

    # File rbs-3.8.0/lib/rbs/unit_test/convertibles.rb, line 134
    def initialize(hash = { 'hello' => 'world' })
      @hash = hash
    end

### Public Instance Methods

to_hash() click to toggle source

    # File rbs-3.8.0/lib/rbs/unit_test/convertibles.rb, line 138
    def to_hash
      @hash
    end