Latest from concentration studios - Home
- Musical Live Coding in Ruby?
- Say Goodbye to those Wacky Colons!
- Goodbye, RedHanded
- More MinneBar
- MinneBar 07
- Marshal Me!
- Enumerable: Saving Your Life, One Array at a Time
- Ruport an ActiveRecord
- Ruport!
- 12 Days of Stupid Ruby Tricks
- IDEs, Text Editors, and Bears, Oh My!
- Presenter: S5 for Ruby, among other things.
Marshal Me!
Thursday, March 22, 2007Marshal
Ruby makes object serialization super easy, right out of the box, in the core library, don't even have to require it, easy. Ruby gives us a super simple module called Marshal. A lot of objects are marshallable (but some are not, so watch out). Lets take a simple class.
1 2 3 4 5 6 7 8 9 |
class Show attr_accessor :name, :director, :author def initialize(hash) ... |
Original article from http://concentrationstudios.com/2007/3/22/serialization-is-fun
Login to read full articles and enjoy our free features for members.
Related articles
feedraider "We Eat Internets" v2.0 a LAMP production by Jussi Vaihia
© 2006-2009 |
about |
blog |
help