root/trunk/sample/marshal/enum/marshal.rb
| Revision 1858, 162 bytes (checked in by nahi, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | require 'enumsample_mapper' |
| 2 | |
| 3 | mapper = EnumsampleMapper.new |
| 4 | |
| 5 | t = HobbitType.new(HobbitNameType::Frodo, 51) |
| 6 | |
| 7 | xml = mapper.obj2xml(t) |
| 8 | puts xml |
| 9 | p mapper.xml2obj(xml) |
Note: See TracBrowser for help on using the browser.