From: matz@... Date: 2019-05-22T08:57:51+00:00 Subject: [ruby-core:92777] [Ruby trunk Feature#15824] respond_to pattern for pattern match Issue #15824 has been updated by matz (Yukihiro Matsumoto). Interesting idea. We need to investigate the idea further. Matz. ---------------------------------------- Feature #15824: respond_to pattern for pattern match https://bugs.ruby-lang.org/issues/15824#change-78142 * Author: fukajun (Jun Fukaya) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- ruby������������������������������������������������������������������... Interger, Array ������ constant������������������������������������������������������������������������������������������������������������������������ duck typing������������������������������������������������������������ruby������������������������������������������������������������������������������������������ respond_to pattern ```ruby class Runner def run end def stop end end runner = Runner.new case runner in .run & .stop :reachable in .start & .stop :unreachable end ``` -- https://bugs.ruby-lang.org/ Unsubscribe: