We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2769b26 commit e422598Copy full SHA for e422598
lib/recursive_open_struct.rb
@@ -13,6 +13,9 @@
13
class RecursiveOpenStruct < OpenStruct
14
include Ruby19Backport if RUBY_VERSION =~ /\A1.9/
15
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
19
include DebugInspect
20
21
def initialize(hash=nil, args={})
@@ -42,6 +45,8 @@ def to_h
42
45
@deep_dup.call(@table)
43
46
end
44
47
48
+ # TODO: deprecated, unsupported by OpenStruct. OpenStruct does not consider
49
+ # itself to be a "kind of" Hash.
50
alias_method :to_hash, :to_h
51
52
def [](name)
0 commit comments