Found the following while making sure Net::SSH works with 1.8.4: irb(main):001:0> Struct.new(:valid?).new.valid? NoMethodError: undefined method `valid?' for #<struct #<Class: 0x535994> :valid?=nil> from (irb):1 This worked in 1.8.2, at least. Is this an intentional change? (This only bites me in the unit tests for Net::SSH, and I can easily work around it, just wanted to make sure problem this was known.) - Jamis
on 2005-12-24 21:48
on 2005-12-24 22:33
On 12/25/05, Jamis B. <email@example.com> wrote: > > - Jamis > Hi, FWIW, it seems to be broken since 1.8.3. $ ruby -ve 'Struct.new(:valid?).new.valid?' ruby 1.8.3 (2005-09-21) [x86_64-linux] -e:1: undefined method `valid?' for #<struct #<Class:0x2aaaab3e8160> :"valid?"=nil> (NoMethodError) I couldn't find any mention about this behavior both in [1.8.3 changes] and [1.8.4 changes]. : http://www.ruby-lang.org/ja/man/?cmd=view;name=rub... : http://www.ruby-lang.org/ja/man/?cmd=view;name=rub...