From: shevegen@... Date: 2018-12-20T15:17:43+00:00 Subject: [ruby-core:90647] [Ruby trunk Bug#15441] undefined method `union' and `difference' in Ruby 2.6 Issue #15441 has been updated by shevegen (Robert A. Heiler). "ruby -v" probably provides more information than the in-ruby constant RUBY_VERSION alone does. ---------------------------------------- Bug #15441: undefined method `union' and `difference' in Ruby 2.6 https://bugs.ruby-lang.org/issues/15441#change-75813 * Author: ana06 (Ana Maria Martinez Gomez) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6 * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Using `irb` with using current Ruby trunk version: ``` irb(main):008:0> RUBY_VERSION => "2.6.0" irb(main):009:0> [1,3,5,7,9].union([2,3,4,5,6]) Traceback (most recent call last): 2: from /usr/local/bin/irb:11:in `
' 1: from (irb):9 NoMethodError (undefined method `union' for [1, 3, 5, 7, 9]:Array) irb(main):002:0> [1,2,3,4].difference([1,2]) Traceback (most recent call last): 2: from /usr/local/bin/irb:11:in `
' 1: from (irb):2 NoMethodError (undefined method `difference' for [1, 2, 3, 4]:Array) ``` -- https://bugs.ruby-lang.org/ Unsubscribe: