OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / lib / common.rb
index 44ebcdf..7d0eb2e 100644 (file)
@@ -11,4 +11,10 @@ module JSON
     res
   end
 end
+
+class Hash
+  def to_attr
+    self.map {|k, n| "#{k}=\"#{n}\"" }.join(' ')
+  end
+end