Using Struct and OpenStruct
Sometimes you just want an object that can store some data for you, the struct class is very useful in this situation. http://www.blackbytes.info/2015/06/using-struct-and-openstruct/
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Sometimes you just want an object that can store some data for you, the struct class is very useful in this situation. http://www.blackbytes.info/2015/06/using-struct-and-openstruct/
Post a comment