diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-01-21 17:47:21 +0000 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-01-21 17:47:21 +0000 |
commit | 2d392e7b167fdf0a6c76e287a0f78c7ff4f88d94 (patch) | |
tree | eb4b862b19ca3a98c0173f7885fd1ae4709df7bb /lib/utils.rb |
Initial commit
Diffstat (limited to 'lib/utils.rb')
-rw-r--r-- | lib/utils.rb | 11 |
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 |