Skip to content

Commit e422598

Browse files
committed
Add a few TODO items about deprecated code changes for a future major release
1 parent 2769b26 commit e422598

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/recursive_open_struct.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
class RecursiveOpenStruct < OpenStruct
1414
include Ruby19Backport if RUBY_VERSION =~ /\A1.9/
1515
include Dig if OpenStruct.public_instance_methods.include? :dig
16+
17+
# TODO: deprecated, possibly remove or make optional an runtime so that it
18+
# doesn't normally pollute the public method namespace
1619
include DebugInspect
1720

1821
def initialize(hash=nil, args={})
@@ -42,6 +45,8 @@ def to_h
4245
@deep_dup.call(@table)
4346
end
4447

48+
# TODO: deprecated, unsupported by OpenStruct. OpenStruct does not consider
49+
# itself to be a "kind of" Hash.
4550
alias_method :to_hash, :to_h
4651

4752
def [](name)

0 commit comments

Comments
 (0)