code == data
data == code
Open
               Struct




Photo: Salt Fired http://www.flickr.com/photos/saltfired/201994906/
require 'ostruct'
o = OpenStruct.new
o.name = 'el rug'
o.name
=> el rug
o.inspect
=> <OpenStruct></OpenStruct>el rug>
# not very classy
o.class
=> OpenStruct
class Fund  OpenStruct

 def your_logic
 end

end
public class Fund
  extends HashMap {




}
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
data == code | LRUG April 2008
Upcoming SlideShare
Loading in …5
×

data == code | LRUG April 2008

2,665 views

Published on

Morph and Pottery rubygem utilities for screen scrapers.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,665
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

data == code | LRUG April 2008

  1. 1. code == data
  2. 2. data == code
  3. 3. Open Struct Photo: Salt Fired http://www.flickr.com/photos/saltfired/201994906/
  4. 4. require 'ostruct'
  5. 5. o = OpenStruct.new
  6. 6. o.name = 'el rug'
  7. 7. o.name
  8. 8. => el rug
  9. 9. o.inspect
  10. 10. => <OpenStruct></OpenStruct>el rug>
  11. 11. # not very classy
  12. 12. o.class
  13. 13. => OpenStruct
  14. 14. class Fund OpenStruct def your_logic end end
  15. 15. public class Fund extends HashMap { }

×