[ruby-dev:50727] [Ruby trunk Feature#15451][Closed] OpenStruct#to_h でブロックを許容する
From:
ruby-core@...
Date:
2018-12-23 03:44:43 UTC
List:
ruby-dev #50727
Issue #15451 has been updated by marcandre (Marc-Andre Lafortune). Status changed from Open to Closed Good catch. Thanks! ---------------------------------------- Feature #15451: OpenStruct#to_h でブロックを許容する https://bugs.ruby-lang.org/issues/15451#change-75849 * Author: shuujii (Shuji KOBAYASHI) * Status: Closed * 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/