Project

General

Profile

Actions

Feature #15451

closed

OpenStruct#to_h でブロックを許容する

Added by shuujii (Shuji KOBAYASHI) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:50725]

Description

Struct#to_h がブロックを受け付けるようになったので、OpenStruct#to_h
も同様にしてはどうでしょうか。

パッチを添付します。


Files

ostruct-to_h-with-block.patch (2.76 KB) ostruct-to_h-with-block.patch shuujii (Shuji KOBAYASHI), 12/22/2018 01:14 PM

Updated by marcandre (Marc-Andre Lafortune) over 2 years ago

  • Assignee set to marcandre (Marc-Andre Lafortune)

Updated by marcandre (Marc-Andre Lafortune) over 2 years ago

  • Status changed from Open to Closed

Good catch. Thanks!

Actions

Also available in: Atom PDF