Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class XMLBase
- def initialize(element=nil)
- @properties = Hash.new
- @properties["hi"] = "test"
- if (element)
- element.each { |child|
- @properties[child.attributes["name"]] = child.text
- puts child.text
- }
- end
- end
- protected
- #attr_accessor :properties
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement