[#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 u=
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.
[#92893] Re: Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1?
— Al Snow <jasnow@...>
2019/05/30
[ruby-core:92623] [Ruby trunk Feature#15842] Allow DelegateClass() to module_eval given block
From:
merch-redmine@...
Date:
2019-05-11 23:40:39 UTC
List:
ruby-core #92623
Issue #15842 has been reported by jeremyevans0 (Jeremy Evans).
----------------------------------------
Feature #15842: Allow DelegateClass() to module_eval given block
https://bugs.ruby-lang.org/issues/15842
* 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>