code_junkie

Variable expansion from/within (XML) source file in Ruby

Nov 12th, 2011
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. @Name = 'freezingkiwis'
  2.  
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <Contact>
  5. <Name>#{@Name}</Name>
  6. <Addresses />
  7. <Phones />
  8. </Contact>
Add Comment
Please, Sign In to add comment