module RecursiveOpenStruct::Ruby19Backport

Public Instance Methods

[]=(name, value) click to toggle source
# File lib/recursive_open_struct/ruby_19_backport.rb, line 9
def []=(name, value)
  modifiable[new_ostruct_member(name)] = value
end
each_pair() { |p| ... } click to toggle source
# File lib/recursive_open_struct/ruby_19_backport.rb, line 22
def each_pair
  return to_enum(:each_pair) { @table.size } unless block_given?
  @table.each_pair{|p| yield p}
end
eql?(other) click to toggle source
# File lib/recursive_open_struct/ruby_19_backport.rb, line 13
def eql?(other)
  return false unless other.kind_of?(OpenStruct)
  @table.eql?(other.table)
end
hash() click to toggle source
# File lib/recursive_open_struct/ruby_19_backport.rb, line 18
def hash
  @table.hash
end
initialize_copy(orig) click to toggle source

Apply fix if necessary:

https://github.com/ruby/ruby/commit/2d952c6d16ffe06a28bb1007e2cd1410c3db2d58
Calls superclass method
# File lib/recursive_open_struct/ruby_19_backport.rb, line 4
def initialize_copy(orig)
  super
  @table.each_key{|key| new_ostruct_member(key)}
end