Method: Concurrent::ImmutableStruct#to_h

Defined in:
lib/concurrent-ruby/concurrent/immutable_struct.rb

#to_hHash

Returns a hash containing the names and values for the struct’s members.

Returns:

  • (Hash)

    the names and values for the struct’s members



41
42
43
# File 'lib/concurrent-ruby/concurrent/immutable_struct.rb', line 41

def to_h
  ns_to_h
end