Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangHanDong committed Mar 19, 2011
1 parent 70a4815 commit 14dd451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_extendsions/array_extendsions.rb
Expand Up @@ -45,7 +45,7 @@ def random
return self[rand(self.size)]
end

# 把数组元素全部转换为字符串,只是一层
# 把数组元素全部转换为字符串。
def stringify_items!
self.each_with_index do |item, i|
item.is_a?(Array) ? item.stringify_items! : self[i] = item.to_s
Expand Down

0 comments on commit 14dd451

Please sign in to comment.