[#63592] [ruby-trunk - Bug #10009] IO operation is 10x slower in multi-thread environment — normalperson@...
Issue #10009 has been updated by Eric Wong.
3 messages
2014/07/08
[#63682] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/13
[#63703] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/14
[#63743] [ruby-trunk - Bug #10037] Since r46798 on Solaris, "[BUG] rb_vm_get_cref: unreachable" during make — ngotogenome@...
Issue #10037 has been updated by Naohisa Goto.
3 messages
2014/07/15
[#64136] Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb — "Jeffrey 'jf' Lim" <jfs.world@...>
As per subject.
4 messages
2014/07/31
[#64138] Re: Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb
— "Jeffrey 'jf' Lim" <jfs.world@...>
2014/07/31
On Thu, Jul 31, 2014 at 6:03 PM, Jeffrey 'jf' Lim <[email protected]>
[ruby-core:63603] [ruby-trunk - Feature #10018] [Feedback] Consider adding Sub-Includes as in include Foo::bar
From:
nobu@...
Date:
2014-07-09 13:55:19 UTC
List:
ruby-core #63603
Issue #10018 has been updated by Nobuyoshi Nakada. Tracker changed from Bug to Feature Description updated Status changed from Open to Feedback You can achieve it by "method transplanting". ~~~ruby class Foo define_method(:any?, Enumerable.instance_method(:any?)) end ~~~ Wrapper method like `Module#mix` may help you. http://www.slideshare.net/yukihiro_matz/rubyconf-2010-keynote-by-matz It has been removed finally, you can construct ---------------------------------------- Feature #10018: Consider adding Sub-Includes as in include Foo::bar https://bugs.ruby-lang.org/issues/10018#change-47658 * Author: Robert A. Heiler * Status: Feedback * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- On IRC someone asked a nice question: > \<arup_r\> If I write `class Foo; include Enumerable; end` This code include all methods from `Enumerable`. But suppose I want to include `#all?`, `#any?` .. What's the way to include only required methods ? This prompted me to write this. What if ruby would allow us to include just singular methods? Something like: ~~~ruby include Enumerable::any? ~~~ And so forth, so that we could cherry-pick what we want. This is already possible in some projects, like facets. But I think they solve it by splitting up the whole stuff into individual files, and then including this. I think it would be nicer if include itself would support a scope-mechanic. -- https://bugs.ruby-lang.org/