root/trunk/sample/basic/sampleStruct/sampleStruct.rb
| Revision 1843, 206 bytes (checked in by nahi, 2 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | require 'iSampleStruct' |
| 2 | |
| 3 | class SampleStructService |
| 4 | def hi(struct) |
| 5 | ack = SampleStruct.new |
| 6 | ack.wrap(struct) |
| 7 | ack |
| 8 | end |
| 9 | end |
| 10 | |
| 11 | if __FILE__ == $0 |
| 12 | p SampleStructService.new.hi(SampleStruct.new) |
| 13 | end |
Note: See TracBrowser for help on using the browser.