{"version":"1.0","blog_url":"https://millyc.hatenadiary.org/","published":"2008-11-06 21:23:43","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmillyc.hatenadiary.org%2Fentry%2F20081106%2F1225974223\" title=\"\u30d1\u30a4\u30d7\u304b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304b\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u306b\u3088\u308b\u5165\u529b\u304c\u5b58\u5728\u3059\u308b\u304b\u306e\u5224\u5b9a - Milly \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","url":"https://millyc.hatenadiary.org/entry/20081106/1225974223","description":"\u5165\u529b\u304c\u306a\u306b\u3082\u7121\u3051\u308c\u3070\u30d8\u30eb\u30d7\u8868\u793a\u3092\u3057\u305f\u3044\u3068\u3044\u3046\u5834\u5408\u306b\u4f7f\u3048\u308b\u3002 isinput.rb unless File.pipe?('/dev/stdin') || IO.select([ARGF], nil, nil, 0) puts 'no input' end \u51fa\u529b\u4f8b $ touch x $ cat x | ruby isinput.rb $ ruby isinput.rb < x $ ruby isinput.rb x no input $ ruby isinput.rb y isinput.rb:1:in `to_io': No such file or directory - y (Errno:\u2026","author_url":"https://blog.hatena.ne.jp/MillyC/","author_name":"MillyC","provider_name":"Hatena Blog","blog_title":"Milly \u306e\u30e1\u30e2","width":"100%","height":"190","categories":["*Programming","Ruby"],"image_url":null,"title":"\u30d1\u30a4\u30d7\u304b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304b\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u306b\u3088\u308b\u5165\u529b\u304c\u5b58\u5728\u3059\u308b\u304b\u306e\u5224\u5b9a","provider_url":"https://hatena.blog"}