summaryrefslogtreecommitdiff
path: root/lib/utils.rb
diff options
context:
space:
mode:
authorNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-01-21 17:47:21 +0000
committerNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-01-21 17:47:21 +0000
commit2d392e7b167fdf0a6c76e287a0f78c7ff4f88d94 (patch)
treeeb4b862b19ca3a98c0173f7885fd1ae4709df7bb /lib/utils.rb
Initial commit
Diffstat (limited to 'lib/utils.rb')
-rw-r--r--lib/utils.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/utils.rb b/lib/utils.rb
new file mode 100644
index 0000000..e3b96a9
--- /dev/null
+++ b/lib/utils.rb
@@ -0,0 +1,11 @@
+module Virgil
+ class Utils
+ def self.unfold(attrs)
+ ret = ""
+ attrs.each do |key, value|
+ ret += " #{key.to_s}=\"#{value}\""
+ end
+ ret
+ end
+ end
+end