OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
element
[pettanr/pettanr.git]
/
lib
/
common.rb
diff --git
a/lib/common.rb
b/lib/common.rb
index
7d0eb2e
..
04c5856
100644
(file)
--- a/
lib/common.rb
+++ b/
lib/common.rb
@@
-16,5
+16,10
@@
class Hash
def to_attr
self.map {|k, n| "#{k}=\"#{n}\"" }.join(' ')
end
+
+ def to_style
+ self.map {|k, n| "#{k}: #{n}" }.join('; ')
+ end
+
end