[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — [email protected]
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:68018] [ruby-trunk - Bug #10578] [Assigned] Allow undefining methods in refinements
From:
shugo@...
Date:
2015-02-05 06:49:07 UTC
List:
ruby-core #68018
Issue #10578 has been updated by Shugo Maeda.
File undef_in_refine.diff added
Status changed from Open to Assigned
Assignee set to Yukihiro Matsumoto
Peter Zotov wrote:
> Since refinements are locally scoped monkey patches, and it is possible and useful to undef a method globally, I think refinements should allow to undef methods as well as def them.
The attached patch allow refinements to undef original methods.
Matz, Can I commit it?
And, is it considered a bug fix?
----------------------------------------
Bug #10578: Allow undefining methods in refinements
https://bugs.ruby-lang.org/issues/10578#change-51405
* Author: Peter Zotov
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Since refinements are locally scoped monkey patches, and it is possible and useful to undef a method globally, I think refinements should allow to undef methods as well as def them.
For example:
~~~ ruby
module NoPlus
refine String do
undef +
end
end
using NoPlus
"a" + "b"
~~~
Expected behavior: undefined method `+' for "a":String
Actual behavior: undef ignored
---Files--------------------------------
undef_in_refine.diff (992 Bytes)
--
https://bugs.ruby-lang.org/