class OpenStruct
Public Instance Methods
Source
# File lib/backports/2.0.0/stdlib/ostruct.rb, line 2 def [](name) @table[name.to_sym] end
Source
# File lib/backports/2.0.0/stdlib/ostruct.rb, line 6 def []=(name, value) modifiable[new_ostruct_member(name)] = value end
Source
# File lib/backports/2.0.0/stdlib/ostruct.rb, line 19 def each_pair return to_enum(:each_pair) unless block_given? @table.each_pair{|p| yield p} end
Source
# File lib/backports/2.0.0/stdlib/ostruct.rb, line 10 def eql?(other) return false unless other.kind_of?(OpenStruct) @table.eql?(other.table) end