[#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:92810] [Ruby trunk Feature#15842] Allow DelegateClass() to module_eval given block
From:
merch-redmine@...
Date:
2019-05-24 00:52:28 UTC
List:
ruby-core #92810
Issue #15842 has been updated by jeremyevans0 (Jeremy Evans).
As delegate.rb is unmaintained, unless someone objects in the next week, I plan on committing this feature.
----------------------------------------
Feature #15842: Allow DelegateClass() to module_eval given block
https://bugs.ruby-lang.org/issues/15842#change-78182
* Author: jeremyevans0 (Jeremy Evans)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
Methods that return classes often module_eval the given block
(e.g. `Class.new` and `Struct.new`). This allows `DelegateClass` to
work similarly. This makes it easier to use `DelegateClass`
directly without subclassing, so as not to create an unnecessary
intermediate class. Example:
```ruby
MyClass = DelegateClass(ClassToDelegateTo) do
def initialize
super(obj_of_ClassToDelegateTo)
end
end
```
Attached is a patch that implements this proposal.
---Files--------------------------------
delegate-class-block.patch (2.26 KB)
--
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>