1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
Jeremy Evans 4f7b435c95 Support obj.clone(freeze: true) for freezing clone
This freezes the clone even if the receiver is not frozen.  It
is only for consistency with freeze: false not freezing the clone
even if the receiver is frozen.

Because Object#clone is now partially implemented in Ruby and
not fully implemented in C, freeze: nil must be supported to
provide the default behavior of only freezing the clone if the
receiver is frozen.

This requires modifying delegate and set, to set freeze: nil
instead of freeze: true as the keyword parameter for
initialize_clone.  Those are the two libraries in stdlib that
override initialize_clone.

Implements [Feature #16175]
2020-03-22 09:30:07 -07:00
..
argf
array Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
basicobject
binding Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
builtin_constants
class
comparable
complex
data
dir
encoding
enumerable
enumerator
env
exception
false
fiber
file Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
filetest
float
gc
hash Proc made by Hash#to_proc should be a lambda [Bug #12671] 2020-03-16 23:38:26 +09:00
integer Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
io Remove support for passing nil to IO#ungetc 2020-02-27 10:17:54 -08:00
kernel Support obj.clone(freeze: true) for freezing clone 2020-03-22 09:30:07 -07:00
main
marshal
matchdata
math
method Don't display singleton class in Method#inspect unless method defined there 2020-03-09 07:57:16 -07:00
module Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
mutex
nil Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
numeric
objectspace
proc
process spec/ruby/core/process/exec_spec.rb: remove a guard for openbsd 2020-03-05 18:25:47 +09:00
queue
random
range
rational
regexp
signal
sizedqueue
string Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
struct Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
symbol
systemexit
thread Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
threadgroup
time Update to ruby/spec@41bf282 2020-02-28 19:07:17 +01:00
tracepoint
true
unboundmethod
warning