{"title":"\u300c\u521d\u3081\u3066\u306eRuby\u300d\u3092\u8aad\u3093\u3067","type":"rich","blog_title":"hyoromo\u306e\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","height":"190","blog_url":"https://hyoromo.hatenablog.com/","image_url":null,"description":"\u672c\u306e\u6574\u7406\u3092\u3057\u3066\u3044\u305f\u3089\u300c\u521d\u3081\u3066\u306eRuby\u300d\u304c\u51fa\u3066\u304d\u3066\u3001\u4e2d\u9014\u534a\u7aef\u306b\u8aad\u307f\u6b62\u3081\u3066\u3044\u305f\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002 \u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u8aad\u307f\u9032\u3081\u308b\u4e0a\u3067\u6c17\u306b\u306a\u3063\u305f\u70b9\u3092\u6574\u7406\u3057\u3066\u304a\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 1\u7ae0 \u3088\u3046\u3053\u305d\u3001Ruby \u306e\u3042\u308b\u751f\u6d3b\u3078 \u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(P.8) #! /usr/bin/ruby # encoding: utf-8 class Duration %w[ days hours minutes seconds ].each do |name| attr_accessor name end end d = Duration.new d.days = 3 d.hours = 5 p d.days Modul\u2026","provider_name":"Hatena Blog","version":"1.0","author_name":"hyoromo","published":"2009-04-05 03:50:08","categories":["Ruby1.8.7"],"author_url":"https://blog.hatena.ne.jp/hyoromo/","width":"100%","url":"https://hyoromo.hatenablog.com/entry/20090405/1238957408","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20090405%2F1238957408\" title=\"\u300c\u521d\u3081\u3066\u306eRuby\u300d\u3092\u8aad\u3093\u3067 - hyoromo\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}