mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
2f19f4d1d8
commit
8bdaaeb99a
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class OpenStruct
|
||||||
::Ractor.make_shareable(getter_proc)
|
::Ractor.make_shareable(getter_proc)
|
||||||
::Ractor.make_shareable(setter_proc)
|
::Ractor.make_shareable(setter_proc)
|
||||||
end
|
end
|
||||||
define_singleton_method!(name, &getter_proc)
|
define_singleton_method!(name, &getter_proc)
|
||||||
define_singleton_method!("#{name}=", &setter_proc)
|
define_singleton_method!("#{name}=", &setter_proc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue