class RBS::UnitTest::Convertibles::ToHash
An object with to_hash method
Public Class Methods
(?::Hash[untyped, untyped] hash) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/unit_test/convertibles.rb, line 135 def initialize(hash = { 'hello' => 'world' }) @hash = hash end
Public Instance Methods
() → Hash[untyped, untyped]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/unit_test/convertibles.rb, line 139 def to_hash @hash end