summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/array_spec.rb
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2021-02-22 04:18:16 +0100
committerGitHub <noreply@github.com>2021-02-22 12:18:16 +0900
commit089b7a84606925e885fe91050483a352735aa91e (patch)
tree585cb85d8e8f28d8bb2ee2793541be95de8562ce /spec/ruby/core/array/array_spec.rb
parent431f531b17cd78b563be11e3c6716c715a812568 (diff)
Improve extension docs, remove deprecated rb_cData [ci skip]
rb_cData is deprecated and the characteristic alloc_func was already removed in ruby-3.0. So this updates the recommendation accordingly. It also adds fdbm_alloc() in order to show the allocation process and to gives TypedData_Make_Struct() more context. Moreover it describes fdbm_aref(), so that the relation to rb_define_method() is shown. And fdbm_aref() makes use of GetDBM() now, to show how this macro might be used.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4208 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'spec/ruby/core/array/array_spec.rb')
0 files changed, 0 insertions, 0 deletions