[ruby-dev:50726] [Ruby trunk Feature#15451] OpenStruct#to_h でブロックを許容する

From: ruby-core@...
Date: 2018-12-22 16:44:06 UTC
List: ruby-dev #50726
Issue #15451 has been updated by marcandre (Marc-Andre Lafortune).

Assignee set to marcandre (Marc-Andre Lafortune)

----------------------------------------
Feature #15451: OpenStruct#to_h でブロックを許容する
https://bugs.ruby-lang.org/issues/15451#change-75844

* Author: shuujii (Shuji KOBAYASHI)
* Status: Open
* Priority: Normal
* Assignee: marcandre (Marc-Andre Lafortune)
* Target version: 
----------------------------------------
`Struct#to_h` がブロックを受け付けるようになったので、`OpenStruct#to_h`
も同様にしてはどうでしょうか。

パッチを添付します。

---Files--------------------------------
ostruct-to_h-with-block.patch (2.76 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next