From: bubo47@... Date: 2014-11-07T12:45:17+00:00 Subject: [ruby-core:66133] [ruby-trunk - Bug #10485] NoMethodError "undefined method `initialize_copy'" when trying to execute Queue#dup Issue #10485 has been updated by Jakub Jursa. why not? :) actually I bumped into this by accident when implementing Queue#to_a (which basically clones *self* and empties it into new array which it then returns). So it's not really some kind of blocker bug. ---------------------------------------- Bug #10485: NoMethodError "undefined method `initialize_copy'" when trying to execute Queue#dup https://bugs.ruby-lang.org/issues/10485#change-49839 * Author: Jakub Jursa * Status: Feedback * Priority: Normal * Assignee: * Category: ext * Target version: current: 2.2.0 * ruby -v: ruby 2.2.0dev (2014-11-07 trunk 48313) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Queue#dup raises NoMethodError (Queue#clone as well) ~~~ :001 > q = Queue.new => # :002 > q.dup NoMethodError: undefined method `initialize_copy' for # from (irb):2:in `initialize_dup' from (irb):2:in `dup' from (irb):2 from /home/bubo/.rvm/rubies/ruby-head/bin/irb:11:in `
' ~~~ -- https://bugs.ruby-lang.org/