From: Love U Ruby Date: 2013-05-24T19:44:09+09:00 Subject: Learning and stuck `OpenStruct` standard library of Ruby Hi, I was learning Ruby's standard library `OpenStruct`. And doing so,out of curiosity wrote the below code: require 'ostruct' person = OpenStruct.new person.name = "John Smith" person.age = 70 person.pension = 300 p person.instance_variables #=> [:@table, :@modifiable] Now my question is - Where the above 2 instance variables have been defined? What are their uses. On the same not I also not able to understand the method `#modifiable`. (http://www.ruby-doc.org/stdlib-2.0/libdoc/ostruct/rdoc/OpenStruct.html#method-i-modifiable). Can any one help me to understand the same? -- Posted via http://www.ruby-forum.com/.