[#92891] Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1? — Al Snow <jasnow@...>
Tried the new 2.7.0-preview1 upgrade to Ruby and see that bundler is also upgraded (to 2.1.0.pre.1).
5 messages
2019/05/30
[#92892] Re: Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1?
— SHIBATA Hiroshi <hsbt@...>
2019/05/30
Bundler 2.1.0.pree.1 is the expected version.
[ruby-core:92540] [Ruby trunk Feature#15824] respond_to pattern for pattern match
From:
fukajun.shark@...
Date:
2019-05-05 00:00:45 UTC
List:
ruby-core #92540
Issue #15824 has been reported by fukajun (Jun Fukaya). ---------------------------------------- Feature #15824: respond_to pattern for pattern match https://bugs.ruby-lang.org/issues/15824 * 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>