[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78691] Re: [Ruby trunk Bug#13044] ruby unless bug with plural conditions

From: Matthew Kerwin <matthew@...>
Date: 2016-12-16 22:18:30 UTC
List: ruby-core #78691
How can an object be both ThingA && ThingB?

Your logic should be: unless obj.is_a?(ThingA) || obj.is_a?(ThingB)

Cheers

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next