{"blog_url":"https://takuya-1st.hatenablog.jp/","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","author_name":"takuya_1st","provider_url":"https://hatena.blog","title":"Ruby\u3067\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9 13 #thread specific Storage ","image_url":null,"author_url":"https://blog.hatena.ne.jp/takuya_1st/","published":"2010-11-24 13:25:09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20101124%2F1290572709\" title=\"Ruby\u3067\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9 13 #thread specific Storage  - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","description":"Ruby\u3067\u7d50\u57ce\u6d69\u305b\u3093\u305b\u3044\u306eJava\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u672c \u305d\u306e\uff11\uff13 # thread specific storage \u30b9\u30ec\u30c3\u30c9\u6bce\u306e\u9818\u57df \u30b9\u30ec\u30c3\u30c9\u6bce\u306b\u6392\u4ed6\u7684\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u9818\u57df\u3002\u30b9\u30ec\u30c3\u30c9\u306f\u305d\u308c\u3092\u4f7f\u3063\u3066\u308b\u306e\u3092\u77e5\u3089\u306a\u3044\u3002 ruby\u3067\u5b9f\u88c5 Log\u3092\u66f8\u304f\u3060\u3051\u306e\u30e2\u30ce #!/usr/bin/env ruby # ThreadSpecific Storage class TSLog def initialize fname @file = open fname, \"w\" end def println s @file.puts s end def close @file.puts \"==== END OF LOG =\u2026","width":"100%","type":"rich","provider_name":"Hatena Blog","categories":["ruby","\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9"],"url":"https://takuya-1st.hatenablog.jp/entry/20101124/1290572709","height":"190"}